Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 755 Bytes

File metadata and controls

21 lines (19 loc) · 755 Bytes

GitHub Commands

  1. git clone url (repository link)
  2. cd foldername
  3. git checkout -b branchName (creating a branch)
  4. git add filename or git add . (add . is to add all files)
  5. git commit -m "message"
  6. git pull origin main (updating the files from main branch)
  7. git push origin userbranchname
  8. sent pr from github

Extra commands

  1. git status ( to check the status of local files)
  2. git branch ( to list the branches and see the current branch)
  3. git checkout branchname (switch to branches)
  4. git fetch --all (to fetch all the changes )
  5. git remote -v ( to see the remote url)

creating issue branch

  1. git checkout main (switch to main branch)
  2. git pull origin main ( pull changes from main)
  3. git checkout -b newbranchname