-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitCommandLine.txt
More file actions
58 lines (51 loc) · 2.39 KB
/
gitCommandLine.txt
File metadata and controls
58 lines (51 loc) · 2.39 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
****Some basic command:
1.mkdir folder_name //for create a new folder
2.touch file_name //for create a new file
3.git status //for check git status
4.git add file_name //for first file add
or
git add . //for updated multiple file
5.git commit //for first file commit also use (i for insert + message + Esc )
or
git commit -m "here any message" //for commit everytime
6.git log //for check all task
or git log --oneline //for use oneline only for all files
7.git checkout //for checkout branch
or git checkout branch_name //for switch recent branch from
8.git rm folder_name //for delete any folder
9.git diff //use for show difference between files
or git diff --staged //for check difference also
10.git show id //for show that files updated via id
11.git init //use at first for initialize git file in first of starting
*****git author config:
12.git config --global user.name "name" //Author adding part of git
13.git config --global user.email "email"//Author email adding part of git
*****push into github :
14.git push origin master //this only one command always use for anything update into github everytime.
*****Brancing :
15.branching/Testing:
master branch to other branch user by "git checkout branch_name" //use for work many branch from master branch
*****Merging :
basically merging user for other branch to master branch add new something code..
16.git merge brnach_name //form master branch we can merge anything into master branch from other branch
17.git checkout -b anotherbranch_name //create new branch and checkout at a same time into that branch
****Summery of all:
-local repository create
-remote repository create
-add,commit,publish/push cammand //use command for untrack to track,publish into github
-branching of a project
-branches merge,merge conflict error fix
****Fork : //that user for master brach to remote branch modification
1.click fork of project
2.git clone clone_project_link
3.cd project_file_name
4.code . //for open into visual studio code
5.create,update,delete,insert..etc
6.git status + git add . + git commit -m "here message for fork" + git push origin master
7.refresh fork project for see "New pull request "button active
8.click button "new pull request"
9.click "create pull request"
10.add something into text_field and press create pull request for modification of fork
****git ignoring:
-create a gitignore file
-put into all ignore file directory for ignore all files