Skip to content

Instantly share code, notes, and snippets.

@zachakbar
Created March 27, 2018 18:39
Show Gist options
  • Save zachakbar/090239595dcf1c6afba4277e11e250b3 to your computer and use it in GitHub Desktop.
Save zachakbar/090239595dcf1c6afba4277e11e250b3 to your computer and use it in GitHub Desktop.
// init empy git repo
git init
// connect repo to project
git remote add origin PROJECT_URL
// checkout branch
git fetch && git checkout BRANCH_NAME
// check working status
git status
// add all files to scm
git add --all
// commit files to scm
git commit -m "MESSAGE_IN_QUOTES"
// push files for pull request
git push
// overwrite local files with master
git merge origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment