add a single file
Stage a file to commit.
copy
Stage a file to commit.
copy
Stage all modified or new files to commit.
copy
Appending "-A" flag stages everything including deletions.
copy
Creates a new branch based of the one currently checked out.
copy
Add ssh key to the keychain.
copy
If you use multiple accounts on different hosts you may need to add your keys manually at the start of the session. The first line in the example starts the shh agent. The second adds a specific key to the keychain. Make sure to update path to point to your key.
copy
Lists all remote and local branches.
copy
Applies stashed changes to your local branch without dropping the stash.
copy
You can create a new branch from any previous commit by running the following code.
copy
Change url path of the remote repository.
copy
This command lists your git settings.
copy
Checkout an existing branch by name.
copy
Copy remote repository in to the current folder. Use repository web address or ssh key.
copy
Commits checked-in changes to the local working branch with a message in one command.
copy
Check ssh Github connection.
copy
With this single command you create and checkout a new branch.
copy
This command steps you through the ssh key creation.
copy
This command will create a new key using a more streamlined approach.
copy
Removes all stashed changes.
copy
Start the ssh agent.
copy
Allows you to check for remote branch changes without affecting or updating the local files.
copy
Set global config values.
copy
Git log returns a list of all commits including SHA-1 checksum, author, date and the commit message.
copy
Returns full log of file changes including file deletion.
copy
Check git version.
copy
Lists all local branches.
copy
This command will list all remote branches. Useful if you want to push changes to multiple repositories.
copy
Merge a branch with currently checked out branch.
copy
Pull all changes from the remote branch.
copy
Pull changes from all remote branches.
copy
Lists all remote branches including statuses and latest commits.
copy
Lists all remote branches.
copy
Use this command to remove a file from git cache.
copy
This command will stop git from tracking a directory but it will not delete the files from the file system. -r flag (recursive) instructs git to remove all files in the direcory.
copy
Remove a given origin.
copy
Unstage all modified or new files from the commit.
copy
Unstage all uncommited changes. This command will also remove all uncommited files!
copy
Unstage a file from the commit.
copy
This command will stop git from tracking a file but it will not remove the file from the file system.
copy
Creates a remote equivalent of the local branch. This only needs to be done once before or with the initial push of the local branch.
copy
Unstage all modified or new files from the last commit. It will not remove any files or changes.
copy
Connect via SSH using a specific key.
copy
Puts local changes in to stash. They don't get committed to the branch so it's useful for saving your work in progress.
copy
Lists all stashes.
copy
If possible it will apply the changes from the stash to your local branch and then will drop the stash. It equals to running 'git apply' and 'git drop' in sequence.
copy
Shows the status of your checked out branch and lists all modified files.
copy
This command will undo the latest commit.
copy
Git uses Vim as the default editor. While merging changes Git can asks you to submit a message using Vim editor.
copy