Commit 2aa4f328 authored by Sabina Köfler's avatar Sabina Köfler
Browse files

Rearrange documents

parent 5566cf8c
Pipeline #1815 passed with stage
in 2 minutes and 34 seconds
## check your local working directory for changes ## check your local working directory for changes
``` ```
git status git status
``` ```
## if 'nothing to commit, working tree clean' get the changes from remote repository ## if 'nothing to commit, working tree clean' get the changes from remote repository
``` ```
git pull origin master (or main) git pull origin master (or main)
``` ```
## if you want to start fresh from the remote repo ## if you want to start fresh from the remote repo
``` ```
git reset --hard origin/master (or origin/main) git reset --hard origin/master (or origin/main)
``` ```
https://stackoverflow.com/a/38784578 <https://stackoverflow.com/a/38784578>
## work now! after you have made changes ## work now! after you have made changes
``` ```
git add [specify filename] git add [specify filename]
``` ```
or add ALL or add ALL
``` ```
git add . git add .
``` ```
## work some more! if done ## work some more! if done
``` ```
git add . (optional) git add . (optional)
``` ```
``` ```
git commit -m "Write message" git commit -m "Write message"
``` ```
## see the difference you made ## see the difference you made
``` ```
git diff origin main git diff origin main
``` ```
## send your changes to the remote repository ## send your changes to the remote repository
``` ```
git push git push
``` ```
## if someone has changed something in the meantime you will get notified ## if someone has changed something in the meantime you will get notified
``` ```
git pull git pull
``` ```
then then
``` ```
git push git push
``` ```
## automatically close an open issue when pushing a commit ## automatically close an open issue when pushing a commit
``` ```
git commit -m "Sort more efficiently" -m "Closes #[INSERT_ISSUE_NO]]" git commit -m "Sort more efficiently" -m "Closes #[INSERT_ISSUE_NO]]"
``` ```
``` ```
git push git push
``` ```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment