-
Notifications
You must be signed in to change notification settings - Fork 3
GitHub tricks
Command line tool that allows you to save your code in a "cleaver" way : keep track of modifications (snapshot ?) and share it.
-
A lot of tricks are already on the MBB wiki GitHub (https://github.com/MBB-team/Misc/wiki/Version-control-with-Git:-a-quick-how-to)
-
Track your code modifications
(avoid silly renaming as "new", "final"...)
You're force to put a label on any modification you do in your code
To take a snapshot (add a modification) :
git commit -A -m "description of your modification" % A for Atomic modification : only inform modification you are doing without changing the mother code.
git status % to get an idea of what you committed.
git push % send all your changes to the website
git pull % get all changes online on your computer
git stash % get rid of your own modification, pull and re-add your own modifications
Sometimes, there is a conflict : if same lines are changed by two users, you'll have a weird thing with >>>>>> .... <<<<<<< in your code, you need to resolve the conflict an then commit.
USE IT ! Versionning is the only way to keep track and do not forget about important changes you do in your code.
- Other MBB (20 people) is allowed to get 20 depositories (shared or private)