Skip to content

natenadze1102/tbc-teamwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Commands / GitHub


📝This is my first Markdown.

If you you have some suggestions, please fork and commit 😉


git image


Syntax Description Instance
1 git clone [repository] clone repository git clone https://github.com/natenadze1102/tbc-teamwork.git
2 git init initialize repository git init
3 git remote add origin [repository] bind local repository with remote git remote add origin https://github.com/natenadze1102/tbc-teamwork.git
4.1 git config --global user.name --- ---
4.2 git config --global user.email --- ---
5.1 git status check stage git status
5.2 git status -s short version of git status git status -s
6.1 git add . OR git add -A to stage all files git add .
6.2 git add [file-name] to stage current file git add index.html
7.1 git branch [branch-name] create branch git branch feature/styles
7.2 git branch -D [branch-name] delete branch git branch -D feature/styles
8.1 git checkout [branch-name] switch choosed branch git checkout feature/styles
8.2 git checkout -b [branch-name] create and switch branch git checkout -b feature/footer
9 git commit -m [message] commit files git commit -m "feat(styles): add some styles
10.1 git reset --hard HEAD go back to last commit git reset --hard HEAD
10.2 git reset [commit name] reset a specific commit git reset 8fa6e9a
11 git revert [commit name] undo changes git revert 8fa6e9a
12 git merge [branch name] *merge branch * git merge feature/styles
13 git rebase [branch name] merge branch without saving commit-history. 📌 rebasing re-writes the project history by creating brand new commits for each commit in the original branch. git rebase feature/styles
14.1 git log see history git log
14.2 git log --oneline *simple version of git log git log --oneline
15 git push -u origin main push main branch on gitHub reppository git push -u origin main
16 git pull synchronize with remote repository git pull
17 git fetch only check if there are any changes on remote repository git fetch

About

TBC - IT GITHUB - TEAMWORK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published