|
|
Turn existing project into git repo
|
|
|
|
|
|
`
|
|
|
cd existing_folder
|
|
|
git init
|
|
|
git remote add origin https://gitlab.qub.ac.uk/GROUP/REPO.git
|
|
|
git add .
|
|
|
git commit -m "Initial commit"
|
|
|
git push -u origin master
|
|
|
`
|
|
|
|
|
|
add all changes to staging (for commit)
|
|
|
|
|
|
`git add .`
|
|
|
|
|
|
commit changes
|
|
|
|
|
|
`git commit`
|
|
|
|
|
|
commit changes with commit message
|
|
|
|
|
|
`git commit -m "MESSAGE"`
|
|
|
|
|
|
push repo to Gitlib
|
|
|
|
|
|
`git push`
|
|
|
|
|
|
download repo from Gitliab (for new development or setting up live app)
|
|
|
|
|
|
`cd project_parent_folder`
|
|
|
`git clone https://gitlab.qub.ac.uk/GROUP/REPO.git` |
|
|
\ No newline at end of file |