Skip to content

Instantly share code, notes, and snippets.

@raazon
Created August 3, 2019 07:12
Show Gist options
  • Save raazon/18ad9e4233eeec00d96a77adce6d7569 to your computer and use it in GitHub Desktop.
Save raazon/18ad9e4233eeec00d96a77adce6d7569 to your computer and use it in GitHub Desktop.
Git Commits

Pull then push new directory to existing git repository

  1. git init
  2. git remote add origin GIT_SSH_URL e.g: [email protected]:example/example.git
  3. git pull --rebase origin master
  4. git add .
  5. git commit -m "New Commit"
  6. git push --set-upstream origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment