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
- install git on machine
- clone the repository with git clone
- modify files in local repo, and then make sure to add them with git add
- configure the user.name and user.email if this is the first time making a commit on the machine
- commit the files using command git commit -m "message"
- 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