- Adyl is learning how to use git in here.
- Adyl is doing great job!
git clone {remote_repo_url}- clones remote project to your localgit checkout {commit or branch}- checks out branch or commit to your local directorygit add {new_file_name}- adds new file to staginggit commit -m "commit text"- commits staging changes to local repogit commit -am "commit text"- adds changes to staging and commits staging changes to local repogit push- pushes changes to remote upstream branch if it is setgit push origin {remote branch name}- pushes changes to the branch if upstream is not setgit pull- pulls changes from remote upstream branch if it is setgit pull origin {remote branh name}- pulls changes from the remote branch if upstream is not setgit fetch- gets all the changes from remote repo into local repogit merge {branch or commit name}- merges changes from the given branch or commcoit name into current branch
