Skip to content

Instantly share code, notes, and snippets.

@flq
Created December 17, 2012 21:08
Show Gist options
  • Save flq/4322268 to your computer and use it in GitHub Desktop.
Save flq/4322268 to your computer and use it in GitHub Desktop.
- Cloned from a remote repository
- Initialized an empty repository
- Pulled from a remote repository
- Made first commit
- Pushed to a remote repository
- Made first local branch
- Pushed a new branch
- Added a second remote
- Merged a branch into another one
- Deleted a local branch
- Made a hard reset to HEAD
- Deleted a remote branch
- Made a tag
- Pushed tags
- Pushed a branch to a remote branch named differently
- Moved commits accidentally made to master to a new branch
- Ammended to the last commit
- Judicious use of git add to separate work into several commits containing related work
- Rebased a branch onto new commits pulled from a remote
- Successfully merged local and remote work
- Pulled to local branch while rebasing local work done on that branch
- Interactively rebased several local commits
- Created a bare repository for syncing and/or backup
- Added a submodule
- Successfully updated a submodule
- Successfully updated a submodule in a way that is useful to other committers
- Cherry-picked a commit
- Successfully recovered an accidentally detached commit.
- Rewrote history
- Used gitconfig to define git aliases like git c for git commit -m, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment