Skip to content

Instantly share code, notes, and snippets.

@muradddd
Created February 2, 2020 16:09
Show Gist options
  • Save muradddd/834bb8ee0d7b5a1a044b444d331349a7 to your computer and use it in GitHub Desktop.
Save muradddd/834bb8ee0d7b5a1a044b444d331349a7 to your computer and use it in GitHub Desktop.
Git stuff
git clone 'repo url'
cd project
git checkout -b {new_branch_name} # create and swiching branch
git checkout master # swiching branch
git branch # show branch list
git add .
git commit -m 'commit'
git push origin {new_branch_name} # to push changes to new branch
git checkout master # swiching branch
# on master branch
git merge idris # idrisin melumatlarini mastere birlesdirecek
git push # send changes to github
# team mate
git clone 'repo url'
cd project
git checkout -b 'new_branch_name'
# deyisiklikleri edir
git add .
git commit -m 'commit'
git push origin {new_branch_name}
git checkout master
# on master branch
git merge {new_branch_name}
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment