0% found this document useful (0 votes)
2 views

Git Basic Commands

Uploaded by

Satha sivam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Git Basic Commands

Uploaded by

Satha sivam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Git Basic Commands

1) rmdir /s .git remove git if mistakenly created inside project.

2) git init – Initialise Git inside Project.

3) git config user.name - check Git Global User name

4) git config user.email – check User email globally

5) git config --global user.email “[email protected]” – set git user mail globally

6) error: 'nodeDemo/' does not have a commit checked out – Need to Delete if Mistakenly Created
Sub folders inside Project

7) git add * - Commit all the files

8) git status – To check files there are in stage or not.

9) git remote add origin “https://github.com/Karthicksatha/nodeDemo.git” – connect git branch


with local barch

10) git push -u origin master – push code to specific orgin name.

11) git status – check which file modified.

12) git commit -m "test" – put message after putting modified file

You might also like