Git push/clone to new server

  1. git remote add name url
  2. git push name branch

Example:

git remote add origin git@github.com:foo/bar.git
git push origin master

See the docs for git push — you can set a remote as the default remote for a given branch; if you don’t, the name origin is special. Just git push alone will do the same as git push origin thisbranch (for whatever branch you’re on).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)