-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitNotes.txt
39 lines (34 loc) · 1.46 KB
/
gitNotes.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
#git:
* version control system tool to track changes in the code.
* fast and Scalable.
* work with collaboration.
#Git hub:
* website that allows developers to store and manage their code using git.
* all codes are stored under "REPOSITORY"(folder).
# Readme:
* special file containg all details about the project.
* show's as "readme.md" "md' extention refers to mark down.
# configure git :
commands :=>
* git config --global user.name "name of the user"
* git config --global user.email " mail id of the user"
# basic git commands:
1. clone command
use to point a exixting repo and make a clone / copy of the same in a directory.
syntax:-> git clone <url https// link>.
2. ls command
to show all the files and folders present in repo.
syntax :- ls & ls -a (used to see all files PLUSE hidden files.)
3. git status:
to show the stats of dipalyed state of the code.
syntax:- git status
4. push command :
to upload local repo content to remote repo.
syntax: git push origin main <at the place of "main" write the branch name you are working in>
5. init command:
used to create a new REPOSITORY on code editor.
syntax:-> git init <repo name>
git remote add origin <----url link---->
# workflow of github using vs code:-
new repo ---> clone that repo ----> make changes in code editor ---> add change in github (git add)---->
commit chnages (git commit -m "msg")---> push changes to th github (git push).