SYS 265 Git & Linux SSh - DefiantCoder/Tech-Journals GitHub Wiki

sudo yum install git

  • git add [the file path]
  • git add .
  • git status
  • git config user.name
  • git config user.email
  • git commit -m "this is where you enter a message about the commit"
  • git push

git pull

  1. install git on machine
  2. clone the repository with git clone
  3. modify files in local repo, and then make sure to add them with git add
  4. configure the user.name and user.email if this is the first time making a commit on the machine
  5. commit the files using command git commit -m "message"
  6. finally push the files to the remote repo with the command git push
  • git add : add the files which are going to be committed
  • git commit -m "enter your comment here": commit the added files
  • git push : after commiting, push the changes to the remote repo
  • git pull : pull down the remote repo
  • git status : check the status of any files added or not added git checkout [file from remote repo] : can be used to recover files from remote repo if deleted from the local repo
⚠️ **GitHub.com Fallback** ⚠️