-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhw.txt
More file actions
35 lines (18 loc) · 1.52 KB
/
hw.txt
File metadata and controls
35 lines (18 loc) · 1.52 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
Git status ->To view listed files you have changed and those file you still need to add or commit.
Git add filename ->Add one(single) file to Staging.
git add --a ->Add all files to staging together.
git commit -m "mass" ->Commit changes to head locally final stage(but not yet to the remote repository).
git push ->Send changes to the master branch of your remote repository(github);
git pull ->To merge changes on the remote server to your local working directory on your PC.
git clone url ->To Create a working copy of a git local repository from github.
git init ->Create a new git local repository on your PC.
git remote ->To check connectivity local working directory to remote server.
git brunch ->to list all the branches in your reporepository , and also tell you what branch you're currently work.
git checkout branchname ->Switch from one branch to another branch.
git marge branchname ->To merge a different branch into your active branch.
git log ->This command is used to check the commit history on git.
git clean -f ->To remove local file.
git clean -fd ->To remove from directories.
git clean -fx ->To remove ignored and non-ignored files.
rm -rf .git ->To remove a file from a Git repository and your working directory but not remove on pc.we can work again Git repository those file.
git fatch origin ->Instead, to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it, do this if connected with remote to git hub.