Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tissue Research JKU
Tissue Research Doc
Commits
191398d1
Commit
191398d1
authored
Nov 18, 2021
by
Sabina Köfler
Browse files
Create git workflow
parent
38a696ac
Pipeline
#1087
passed with stage
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
quick-start-guides/get_started_with_git.md
0 → 100644
View file @
191398d1
## check your local working directory for changes
```
git status
```
## if 'nothing to commit, working tree clean' get the changes from remote repository
```
git pull origin master (or main)
```
## if you want to start fresh from the remote repo
```
git reset --hard origin/master (or origin/main)
```
https://stackoverflow.com/a/38784578
## work now! after you have made changes
```
git add [specify filename]
```
or add ALL
```
git add .
```
## work some more! if done
```
git add . (optional)
```
```
git commit -m "Write message"
```
## see the difference you made
```
git diff origin main
```
## send your changes to the remote repository
```
git push
```
## if someone has changed something in the meantime you will get notified
```
git pull
```
then
```
git push
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment