-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathgit-commands
More file actions
59 lines (59 loc) · 1.37 KB
/
git-commands
File metadata and controls
59 lines (59 loc) · 1.37 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
git clone https://github.com/BecomeDevops/tryfail.git
863 ls
864 ls -lrt
865 cd tryfail
866 ls
867 touch test
868 git status
869 git add .
870 git status
871 git branch
872 git commit -m "created test file"
873 git status
874 git branch
875 git status
876 ls
877 git push
878 git status
879 ls
880 vi log
881 git add .
882 git status
883 git status
884 git rm --cached log
885 git status
886 ls
887 git clean -n
888 git clean -f
889 git status
890 ls
891 ls
892 git status
893 touch index
894 vi ndex
895 git status
896 ls
897 git add .
898 git status
899 git commit -m "index files"
900 git log --oneline --all
901 git log --oneline --all --graph
902 LS
903 ls
904 git reset --soft HEAD~1 - this will undo the commit in local repository but its available in staging area and working directory
905 GIT STATUS
906 git status
907 git log --oneline --all --graph
908 ls
909 touch ec2
910 ls
911 git status
912 git rm --cached index ndex
913 git status
914 git add .
915 git status
916 git commit -m "added ec2, index, ndex"
917 git status
918 git log --oneline --graph --all
919 git reset --hard HEAD~1 -> this will undo the commit from local repo, staging area and working fdirectory
920 git log --oneline --graph --all