Using Git for local repository

ykgoh

Master Member
Joined
Jan 1, 2000
Messages
2,782
Reaction score
0
Suppose I create a local repository in my laptop for a test project.

Code:
git init

After that I create new files and add them, and then commit changes.

Since there is no remote repository that I cloned from, do I still need to push?

Code:
git push
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
Suppose I create a local repository in my laptop for a test project.

Code:
git init

After that I create new files and add them, and then commit changes.

Since there is no remote repository that I cloned from, do I still need to push?

Code:
git push

nope. you don't need to push to another repository since what you are doing now is just keeping track of changes happening locally.
 

ykgoh

Master Member
Joined
Jan 1, 2000
Messages
2,782
Reaction score
0
nope. you don't need to push to another repository since what you are doing now is just keeping track of changes happening locally.

Thank you for confirming.

Still trying to wrap my head around DVCS. Coming from a CVS/Subversion/VSS background.
 

jaysenko

Junior Member
Joined
Nov 9, 2016
Messages
10
Reaction score
0
versioning control

Thank you for confirming.

Still trying to wrap my head around DVCS. Coming from a CVS/Subversion/VSS background.

use one that you are most comfortable with. don't change just cos of popularity.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top