Compare commits
15 Commits
c7bcc2e1b0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c06ed5ad1 | |||
| 61d397d016 | |||
| 38c36e0327 | |||
| 96a16b7cfb | |||
| 4cf8c85424 | |||
| fd428306bf | |||
| e096bc381c | |||
| a87429b16c | |||
| 0a63687187 | |||
| 77e43b1b06 | |||
| e3cf7206bc | |||
| 3bc14e9d1d | |||
| b0df68f468 | |||
| f0e3e9fd10 | |||
| d9bffb8ea4 |
BIN
.GIT.md.swm
BIN
.GIT.md.swm
Binary file not shown.
BIN
.GIT.md.swn
BIN
.GIT.md.swn
Binary file not shown.
BIN
.GIT.md.swo
BIN
.GIT.md.swo
Binary file not shown.
20
GIT.md
20
GIT.md
@@ -1,4 +1,24 @@
|
||||
# Git Commands
|
||||
|
||||
## Show current branch
|
||||
``git status``
|
||||
|
||||
## Show local and online branches
|
||||
``git branch -a``
|
||||
|
||||
# Workflow
|
||||
```
|
||||
git status # show our current branch
|
||||
git switch or git pull # switch to dev / main and pull
|
||||
git checkout -b "branch-name" # create an new branch based on the current one
|
||||
git status # show again the current branch
|
||||
|
||||
DO YOUR WORK HERE, EDIT ADD FILES...
|
||||
|
||||
git status # show what we have edited / added
|
||||
git add . # add all the edits
|
||||
git commit -m "your message" # this makes the commit locally
|
||||
git push # sends your commit to the public branch and awaits for pr processing
|
||||
or
|
||||
git push --set-upstream origin "branch-name" # this can be asked for the fist time only because the branch does not exists online
|
||||
```
|
||||
|
||||
17
README.md
17
README.md
@@ -1,5 +1,10 @@
|
||||
# Test-Repo
|
||||
# ITSchool
|
||||
|
||||
<p align="center">
|
||||
<a href="./README.md">🏠 Home</a> |
|
||||
<a href="https://gitea.dev.bodnarescu.ro/Daemon/Test-Repo/wiki">📚 Wiki</a> |
|
||||
<a href="./GIT.md">🔧 Git Commands</a>
|
||||
</p>
|
||||
|
||||
## Just an test...
|
||||
- alt test
|
||||
@@ -11,10 +16,8 @@
|
||||
#!/bin/bash
|
||||
echo "Hello, World!"
|
||||
```
|
||||
# GIT WIKI
|
||||
[Wiki](https://gitea.dev.bodnarescu.ro/Daemon/Test-Repo/wiki)
|
||||
|
||||
|
||||
@todo
|
||||
|
||||
test token
|
||||
|
||||
test push
|
||||
# GIT COMMANDS
|
||||
[GIT.md](/GIT.md)
|
||||
|
||||
Reference in New Issue
Block a user