Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Git – setting up a remote repository and doing an initial push
SUBMITTED BY:
Guest
DATE:
May 19, 2013, 2:57 p.m.
FORMAT:
Text only
SIZE:
557 Bytes
Raw
Download
Tweet
HITS:
982
Go to comments
Report
Firstly setup the remote repository:
ssh git@example.com
mkdir my_project.git
cd my_project.git
git init --bare
git update-server-info # If planning to serve via HTTP
exit
On local machine:
cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin git@example.com:my_project.git
git push -u origin master
Done!
Team members can now clone and track the remote repository using the following:
git clone git@example.com:my_project.git
cd my_project
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus