Pages

Monday, March 21, 2022

Git Commands (clone from Github and Update your work and Push to Github)

1. I cloned my Project from GitHub  
Command: git clone 




clone completed.

.................................................................................................................................................................

2. How to show your hidden .git file
Command: dir -la

.................................................................................................................................................................

3. List which files are changed (staged, unstaged, and untracked)
Command:  git status


.................................................................................................................................................................

4.  The Untracked files message means that there are files in the directory that Git is not keeping track of. We tell Git that it should do so using git add:
Command:  git add filename


if multiple files changed then use 
Command:  git add * 


.................................................................................................................................................................

5 . Commit files that have been staged (with git-add)
Command:  git commit -m ""


6 . Now you can Push your work in the Github
Command:  git push

No comments:

Post a Comment