3 Things No One Likes About You

We are ridiculously flawed, even though we might not be aware of it. We all have certain tendencies to piss people off . Yes, even you do! How would you feel if someone unloads all of their problems…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Basic Git Command you need to know

On this page, you will find all the basic commands of git you need to know.

Configure your GitHub account email and name.

Make Git store the username and password and it will never ask for them.

This command shows the commit history for the current repository:

This command shows the commit’s history including all files and their changes:

This command will cause the Git log to show some statistics about the changes in each commit, including line(s) changed and file names.

How to show the commit log as a graph of all branches in Git:

This command expects a commit message to explain why the file was deleted.

This command stages the changes, then it expects a commit message.

Create a .gitignore file and commit it.

You can use the -p option flag to specify the changes you want to reset.

git commit — amend allows you to modify and add changes to the most recent commit.

git revert will create a new commit that is the opposite of everything in the given commit.

We can revert the latest commit by using the head alias like this:

You can revert an old commit using its commit id. This opens the editor so you can add a commit message.

How to switch to a newly created branch in Git:

How to abort a conflicting merge in Git:

If you want to throw a merge away and start over, you can run the following command:

List the current configured remote repository for your fork.

Specify a new remote upstream repository that will be synced with the fork.

This command shows the name of all remote branches that Git is tracking for the current repository:

When all your work is ready to be saved on a remote repository, you can push all changes using the command below:

How to pull changes from a remote repo in Git:

How to fetch remote repo changes in Git:

If you want to push a branch to a remote repository you can use the command below. Just remember to add -u to create the branch upstream:

You can transfer completed work from one branch to another using git-rebase.

Git Rebase can get really messy if you don’t do it properly. Before using this command I suggest that you re-read the official documentation here

This command will force a push request. This is usually fine for pull request branches because nobody else should have cloned them. But this isn’t something that you want to do with a public reposository.

Add a comment

Related posts:

Internet Slang Words Starting With Letter W

What does WYM Mean?. “Internet Slang Words Starting With Letter W” is published by ShivAm Raj.

The Glory of each Hole

They visited a sex fair, and while watching others performing sex acts in a restricted area, Jett led Romany to a room, and told her what he expected.

Weekly Cryptocurrencies Leaders Under A Market With Positive Recovery

As written by criptonoticias, from November 1 to 7, 2021, the market shows important signs of recovery. About 70% of cryptocurrencies show an upward trend, with increases of up to more than 40%. The…