Use Git
Initialisation
Clone a repository
Create a new repository
Remote management
Add a Git remote
Update the Git remote
Retrieving changes
Fetch changes
Fetching retrieves the changes but does not merge the changes with your local copy.
Merge changes
Merging takes the remote changes that have been fetched from the remote and merges them with your local copy.
Pull changes
Pulling basically does a fetch and merge.
Pull with Rebase
Pulling with rebase does a fetch, but before merging in the remote changes, it rolls back to a state before all remote changes were made, applies the remote changes, and then applies your local changes.
Rebase
Saving changes
Stashing
Staging
Commiting
Commiting without any changes
Modifying changes
Adding a file to a previous commit
Squash commit
Squashing till origin/master/HEAD
Uncommit last commit
Reverting a commit
Submitting changes
Pushing
Force Pushing
Assessing changes
View all current changes
View commit history
View difference between commits
Viewing repository information
View the Git configuration
Check which branch you're on
See all remotes
Why
I would like to see which remotes I am pushing to
Checking which .gitignore
is ignoring a file
.gitignore
is ignoring a fileWhy
I would like to know which
.gitignore
is causing a file to be ignored without any obvious reason
Repository adminstration
Creating a new branch from an existing one
Deleting a local branch
Deleting a remote branch
Deleting local remote branches that have been deleted remotely
Last updated
Was this helpful?