Skip to content

reddylee/git-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

find . -name '.DS_Store' -type f -delete

# git status

# git restore <file>..." to discard changes in working directory

# git add <file>..." to update what will be committed

# git restore --staged <file>..." to unstage

# git commit -m ' ' to commit

# git log
# git log --oneline to see what you have done

# git checkout b5d72f2

# git revert b5d72f2  to discard changes

# git reset "8ab705a" to go back to specific commit (remove commits after "8ab705a")

# git reset 226ec1b --hard (discard changes)

# git branch to show how many branches and which branch you are on 
# git branch branch_name to create a new branch

# git checkout blog to switch to branch "blog"

# git checkout master to switch back to "master"

# git branch -D deletme to delete branch "delete"

# git merge blog to merge "blog" into "master"

# git remote add origin https://github.com/reddylee/git-study.git to connect GitHub

# git push origin main

# git clone https://github.com/reddylee/remove.git to clone a repository from GitHub

About

Learn how to use Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages