-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.txt
32 lines (20 loc) · 1.71 KB
/
a.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
abcdef
Git:-
1. git config - To set email and username of the author.
2. git init - initalize a local repository
3. git status - gives information about the state of files in repository.
4. git add filename - To add any file to staged area.
git add . - to add everthing in the staged area.
5. git rm
6. git commit
7. git log
8. git stash
- git stash pop (bring back all the changes thats was stashed earlier)
- git stash clear (delete everything in from the stash)
------------------------------------------
GitHub:-
1. git remote add origin - To connect remote Repository to local repository.
git remote -v : To see your own repository.
2. git branch branchName - To create a new branch for bugs, adding new features, etc.
3. git merge branchName - To merge a branch to the main project.
4. git checkout branchName - to work within the new branch.