Add specified <file> to your list of commits.
git add <file>Amend the current changes. Typically done after cherry-pick from gerrit.
git commit --amendFetch and Merge from the remote depot.
git pull --rebaseUpdate all submodules
git submodule update --init --recursiveDelete a local branched named 'test'.
Will fail if the specified branch has orphaned changes.
git branch -d testForce deletion of a local branch named 'test'.
git branch -D testDisplay all branches even the remote once.
git branch -avSwitch to a branch names 'local'.
git checkout localShows your local branches including the one you have currently checked out.
git branchCreate a local branch from a remote one
git checkout -b test-local remotes/origin/testShows which branch you have currently checked out and the status of local files.
git statusRun this from your working branch to update from your local master.
git rebase masterList the history, last change first.
git logRevert all you changes
git reset --hardAbort a cherry pick
git reset --mergeStash management
git stash savegit stash applygit stash popgit stash listRebase
git rebase -i master PowerVR-updateMerge changes from the specified branch onto the current branch
git merge thatbranchMerge back to master
git merge --no-ff mybranchTortoise dialog
TortoiseProc /command:log /path:.To cherry-pick a merge. -m 1 reference to the first parent of the merge as listed on gerrit.
git cherry-pick -m 1 FETCH_HEADTo delete your latest commit from your history
USE THIS CAREFULLY, YOU ALSO LOOSE ALL LOCAL CHANGES
git reset --hard HEAD^Squash the last 2 commits. Commit messages are lost. You'll need to commit again after the soft reset.
git reset --soft HEAD~2BEWARE: Delete untracked files
git clean -f
Last edited: