Create - GradedJestRisk/git-training GitHub Wiki
Overview
- create repository
git init
- create alias on a remote (= not in current folder of localhost) repository (named "origin" by convention)
git remote add origin <REPO_URL>
- check
git remote -v
- pull remote:
git pull
- set upstream for current branch:
git branch --set-upstream-to=origin/<REMOTE_BRANCH> <LOCAL_BRANCH>
- eg:
git branch --set-upstream-to=origin/master master
- push to remote repository
git push origin master>
git push --force
to override.
git clone https://github.com/GradedJestRisk/java-training.git
Info: Doing so cause the distant server name to be added to ~/.ssh/known_hosts file, with its public key
If can you got fatal: unable to access 'https://github.com/GradedJestRisk/': SSL certificate problem: self signed certificate in certificate chain
, execute git config --global http.sslVerify false