-
Notifications
You must be signed in to change notification settings - Fork 0
Git tutorial
MatthewThe edited this page Feb 19, 2015
·
1 revision
- Install git:
sudo apt-get install git
- Clone repository (this will create a folder called
cyto-rna
in the working directory):
git clone https://github.com/MatthewThe/cyto-rna.git
When working on the project, please follow the following workflow (all commands are executed inside the created cyto-rna
folder):
- Get the latest version of the repository:
git pull
- Make your local changes (including adding and deleting files):
- Add new files if you have created any:
git add .
- Commit your files to your local repository:
git commit -am "Some useful message"
- Push your files to github (this might give errors if changes were made by another person in the mean time):
git push
- Remember to do steps 3-5 regularly (at the minimum when you finish your work for the day, preferably after every significant work).
- Note that you can also use git on UPPMAX using the exact same commands as above