Typical add/commit/push workflow:
#add local change ready to commit git add . #git commit changes to repo git commit -m "commit message" #push to remote repo git push [optional remote repo name here, eg origin, etc]
Find changes committed locally compared with remote repo, i.e. to find what you’ve committed locally but not yet pushed:
git diff --stat [remote repo name]
List associated remote repos and their locations:
git remote -v
Add a new remote repo to an existing local app/repo:
git remote add remotename remote_git_repo_url
One Reply to “Git notes”