Page MenuHomec4science

readme.txt
No OneTemporary

File Metadata

Created
Sun, Jan 12, 06:47

readme.txt

To access the git repository in c4science
-----------------------------------------
1. Go to Projects > JuNoTE > Repositories > JuNoTE_git_repository
(or)
Click Repositories in the APPLICATIONS tab. Click Project Repositories > JuNoTE_git_repository
**************************************************************************************************************
To work with the git repository
-------------------------------
You need a username and password to work with the git repository.
1. Your username is the c4science username. It is mostly your lastname unless you have customized it.
2. To set your password,
- Go to settings in your c4science account.
- click on VCS password and set a password.
Now choose your favorite git interface do the following steps.
1. git clone https://c4science.ch/diffusion/9442/junote_git_repository.git
2. Developers are requested to work on the staging branch.
- git checkout staging
You can start working on the repository.
**************************************************************************************************************
Handy git commands
------------------------
git status - shows the branch name and status
git checkout <branch_name> - to switch branches
git pull origin <branch_name> - to pull the branch
git push origin <branch_name> - to push the branch
git add . - to add your changes
git commit -m "<message>" - to commit
**************************************************************************************************************
General instructions
-----------------------
Anytime you start working on the project, do the following steps,
1. git checkout staging - ensure you are in staging
2. git pull origin staging - always pull the code before working as someone could have pushed some changes
3. work on your code
4. git add . - add your changes
5. git commit -m "<message>" - add a meaningful commit message
6. git pull origin staging - again ensuring if there are new changes.
7. git push origin staging.
You can go the same with GUI if you are not comfortable with command line interface. Fork is a good git GUI interface if you would like to try - https://git-fork.com/

Event Timeline