-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
39 lines (21 loc) · 1017 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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