Before programming: create a new branch from master
Download one version of LBM_Saclay
For example here LBM_Saclay_Rech-Dev
version, the command git clone
$ git clone --recursive https://codev-tuleap.cea.fr/plugins/git/lbmsaclay/LBM_Saclay_Rech-Dev.git
Check your current branch
Check your current branch
Once the download is complete, go to
LBM_Saclay_Rech-Dev
directory$ cd LBM_Saclay_Rech-Dev $ git statusreturns:
Sur la branche master Votre branche est a jour avec 'origin/master'. rien a valider, la copie de travail est propremeans that you are currently on the
master
.
Create a new branch
Create a new branch
Create a new branch, example name of the new branch
dev/alain.cartalade
$ git branch dev/alain.cartaladeMove on that new branch
$ git checkout dev/alain.cartaladeCheck
$ git status
Move on one existing branch
Move on one existing branch
Example to move on one existing branch
dev/hoel.keraudren
$ git checkout dev/hoel.keraudren
Copy and rename one existing branch
Copy one existing branch
Example to copy and rename one existing branch e.g.
development
Basculement sur la branche
development
$ git checkout developmentNew branch
dev/alain.cartalade
copied fromdevelopment
+ switch$ git checkout -b dev/alain.cartaladeCreate the new branch on Tuleap + link to the local one
$ git push -u origin dev/alain.cartaladeYou can start your developments on your branch.
After programming: push your developments
Check the modifications on the current branch
$ git status
Add your comment and push your developments
Add, comment and push
$ git add * (or -all) # add new modifications $ git commit -m "comment" # add new comments related to modifications $ git push # push modifications on git
Compilation and run
For ORCUS, follow the instructions:
For project admin
Merge branch dev/firstname.name
Merge one branch in master
Stay on branch master and merge the branch you want:
$ git merge origin/dev/aurelien.laurens $ git add * $ git commit -m "Merge branche dev/aurelien.laurens" $ git push
Cancel your last commit
Merge one branch in master
$ git status $ git reset --hard HEAD~1 $ git push --force
Section author: Alain Cartalade