repository - GIT: Better method of setting up fresh repo -
With a new GIT repo, I want to know what is the best practice ether to create GIT repo locally and Pushed, or pulled away and pulled.
Method 1
Local machine (whatever in the project folder)
git Add init GIT Git commit -m 'Initial commitment' git Remote add original & lt; Server-repo-url & gt; Git push --all origin
Or is it better that you install the repo on the server and then drag it to your local machine?
Method 2
Remote Server
mkdir myrepo.git cd myrepo.git Git --bare init
Or does it also matter?
It does not specifically talk to the GIT that the equivalent repository is configured for the client and server Can be shared between Unless your clients (servers) are fully configured to work with a repository on the server, they are both great.
Comments
Post a Comment