Skip to content

MayukhGhosh-web/learn-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

learn-git

how to use Git at your early stage

How to clone a repository

  1. Create a github account.
  2. Create a repository in github.
  3. Copy the url of the repository from github.
  4. Click clone the repository in vscode.
  5. Paste the copied link of repository in vscode.
  6. The cloned file should be saved in certain location.
  7. Repository created successfully.
  8. Open terminal.
  9. Now we add this modified file in the repository using the comment "git add .\README.md".
  10. Now we check the status using comment "git status".
  11. Now we use the comment "git commit -m " to complete the file changes.
  12. Now we publish the file with "git push origin main".
  13. To load the modified changes from other user, use "git pull origin main".
  14. To add a new branch, we need to use "git checkout -b branch_name".
  15. To check available branch, we need to use "git branch".
  16. To change branch, we need to use "git checkout main".
  17. To merge the new branch, we need to click the link which appeared after pushing into new branch.
  18. Now we get a push request at github, we confirm the request and merge into the main branch.
  19. Making changes to Readme file as Tamajit.

About

how to use Git at your early stage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •