MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/2uyui0/git_23_has_been_released/coejixb?context=9999
r/programming • u/alexeyr • Feb 06 '15
307 comments sorted by
View all comments
12
Is there any good resource out there for learning to use git? I've tried about 4 times, and always say "fuck it" and go back to using subversion.
18 u/gammadistribution Feb 06 '15 edited Feb 06 '15 Because there's not much to learn honestly.I find it easier than subversion. At least, the workflow easier anyway. It's pretty simple to make a branch do your thing then merge the branch with the trunk. It only takes like 4 commands to do all of that.EDIT: Ok, you said resource not reason. Sorry. 0 u/sirin3 Feb 06 '15 It's pretty simple to make a branch do your thing then merge the branch with the trunk.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 git checkout -b cool_feature make some changesgit add -A git commit -m "I made some changes"repeat until feature is done.git checkout master git merge cool_feature git push origin masterYou don't have to push the branch, it just makes it simple to work separately on a feature. 1 u/GuinnessDraught Feb 08 '15 For a personal/solo project, that's a fine workflow.For a team project using github/gitlab, though, if you're pushing directly to master I'm going to hunt you down.Once you get in the habit of pushing branches and opening pull requests into master you'll find it's a good workflow for solo and team projects. 1 u/gammadistribution Feb 08 '15 I mean the guy was wondering why you made branches.
18
Because there's not much to learn honestly.
I find it easier than subversion. At least, the workflow easier anyway. It's pretty simple to make a branch do your thing then merge the branch with the trunk. It only takes like 4 commands to do all of that.
EDIT: Ok, you said resource not reason. Sorry.
0 u/sirin3 Feb 06 '15 It's pretty simple to make a branch do your thing then merge the branch with the trunk.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 git checkout -b cool_feature make some changesgit add -A git commit -m "I made some changes"repeat until feature is done.git checkout master git merge cool_feature git push origin masterYou don't have to push the branch, it just makes it simple to work separately on a feature. 1 u/GuinnessDraught Feb 08 '15 For a personal/solo project, that's a fine workflow.For a team project using github/gitlab, though, if you're pushing directly to master I'm going to hunt you down.Once you get in the habit of pushing branches and opening pull requests into master you'll find it's a good workflow for solo and team projects. 1 u/gammadistribution Feb 08 '15 I mean the guy was wondering why you made branches.
0
It's pretty simple to make a branch do your thing then merge the branch with the trunk.
Why would you want that? Then you only get a mess of far too many branches
1 u/gammadistribution Feb 06 '15 git checkout -b cool_feature make some changesgit add -A git commit -m "I made some changes"repeat until feature is done.git checkout master git merge cool_feature git push origin masterYou don't have to push the branch, it just makes it simple to work separately on a feature. 1 u/GuinnessDraught Feb 08 '15 For a personal/solo project, that's a fine workflow.For a team project using github/gitlab, though, if you're pushing directly to master I'm going to hunt you down.Once you get in the habit of pushing branches and opening pull requests into master you'll find it's a good workflow for solo and team projects. 1 u/gammadistribution Feb 08 '15 I mean the guy was wondering why you made branches.
1
git checkout -b cool_feature
make some changes
git add -A git commit -m "I made some changes"
repeat until feature is done.
git checkout master git merge cool_feature git push origin master
You don't have to push the branch, it just makes it simple to work separately on a feature.
1 u/GuinnessDraught Feb 08 '15 For a personal/solo project, that's a fine workflow.For a team project using github/gitlab, though, if you're pushing directly to master I'm going to hunt you down.Once you get in the habit of pushing branches and opening pull requests into master you'll find it's a good workflow for solo and team projects. 1 u/gammadistribution Feb 08 '15 I mean the guy was wondering why you made branches.
For a personal/solo project, that's a fine workflow.
For a team project using github/gitlab, though, if you're pushing directly to master I'm going to hunt you down.
Once you get in the habit of pushing branches and opening pull requests into master you'll find it's a good workflow for solo and team projects.
1 u/gammadistribution Feb 08 '15 I mean the guy was wondering why you made branches.
I mean the guy was wondering why you made branches.
12
u/cakes Feb 06 '15
Is there any good resource out there for learning to use git? I've tried about 4 times, and always say "fuck it" and go back to using subversion.