Skip to content

Instantly share code, notes, and snippets.

@kktuax
Last active August 29, 2015 14:06
Show Gist options
  • Save kktuax/ec73a2e49e4dce542023 to your computer and use it in GitHub Desktop.
Save kktuax/ec73a2e49e4dce542023 to your computer and use it in GitHub Desktop.
Git Snippets
git checkout -b feature_branch_name
# edit files, add and commit ...
git push -u origin feature_branch_name
git clone git@github.com:My/fork.git
git remote add upstream git@github.Original/repo
git fetch
git checkout stable
# sync original branch
git fetch --all
git merge upstream/stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment