This the repository for an ADSA project for FA 18.
Use of Github:
- Don't work directly on master
- Make branches based on small problems
- Name branch
- Commit frequently to your branch
- Try and merge with master frequently (small branches)
- Once you merge with master, create a new branch off master (don't just use the same branch every time.) Commands:
- Pull:
git pull origin <branch_name> - Create a branch:
git checkout -b <branch_name> - Commit to branch
- check changed files
git status - add files:
git add <files_changed>orgit add .to add all changes - commit changes with message:
git commit -m "<message>"
- check changed files
- Push Commits
git push origin <branch_name> - Checkout branch
git checkout <branch_name> - TO MERGE WITH MASTER
-
- Push changes to your branch
git push origin <branch_name>
- Push changes to your branch
-
- Pull from your branch
git pull origin <branch_name>
- Pull from your branch
-
- Checkout master
git checkout master
- Checkout master
-
- Pull from master
git pull origin master
- Pull from master
-
- Checkout your branch again
git checkout <branch_name>
- Checkout your branch again
-
- Now both branches are up to date
-
- Pull from master so that they merge. You might (will) have merge conflicts
git pull origin master
- Pull from master so that they merge. You might (will) have merge conflicts
-
- Fix merge conflicts and push changes to branch
-
- Make a PR from your branch to master (do this online)
-