Git memo - toge510/homelab GitHub Wiki

First commit

git init
git add .
git commit -m "First commit"

Create ceph_cluster repo on Github UI.

git remote add origin https://github.com/toge510/ceph_cluster.git
git push --set-upstream origin master
  • git remote -v
  • git remote remove origin

Use proxy server

git config --global http.proxy http://proxyUsername:[email protected]:port

Set config (User)

git config --global --edit
[user]
        email = <email>
        name = <username>

Update connection type from https to ssh

  • Register ssh public key
  • check the current repo url with git remote -v
  • set repo url with git remote set-url origin [email protected]:toge510/aws.git
⚠️ **GitHub.com Fallback** ⚠️