-
Notifications
You must be signed in to change notification settings - Fork 15
Working and Branching with Git
Sebastian Scherer edited this page Jun 4, 2014
·
4 revisions
- Checkout the repository
git clone https://github.com/C-CINA/2dx.git - Add your changes to the source code
- Commit your changes with
git commit -a -m "commit message". This will commit the changes to your local repo, not the repo on the server! - Share your changes with the other developers with
git push
- Create a local branch with
git checkout -b feature1 - Implement the new feature
- Push to remote with
git push origin feature1 - Merge the branch back
- Delete the feature branch locally
git branch -d feature1 - Delete the feature branch remotely
git push origin :feature1
git fetch origingit checkout -b feature1 origin/feature1