Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 1.21 KB

README.md

File metadata and controls

19 lines (10 loc) · 1.21 KB

Git_Practice

Practicing and learning git commands / exploring git in this repository

  1. git clone [repolink] to clone a repository successfully done

  2. git add [file name ] to upload a file on git hub {adding means change is ready to commit }

  3. git add . to uplod all fies on gihub

  4. git commit -m "message" a mesaage which display the reason to change or what change has is perfomed {commit means change is finalized and commited to keep}

  5. git push to upload the file in the github

  6. git status to check the current status of file {if some change made as compared to origin repo than it shows modify status and and changes are not staged } , [ if nothing is changed than it shows branch is up to date ]

{ four types of status to be shown :- 1. untracked " new file created that git does not track ", 2. modified :- "any change is to be considered as modified", 3:- ' staged :- file is ready to commited after add command the status of fil e is change from modified to staged', 4. Unmodified :- unchanged} {after commiting if we check git status than it shows that is ahead of origin command of number of commits performed before git push}

  1. git push { to uplod local repo content to remote repo} (git push origin main)