MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/2uyui0/git_23_has_been_released/codddpm/?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. 2 u/gfixler Feb 06 '15 git branch -d cool_feature 2 u/gammadistribution Feb 06 '15 If you don't want to collect dead branches, sure. 2 u/gfixler Feb 06 '15 I just did that for /u/sirin3's sake.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow. 1 u/crusoe Feb 06 '15 git branch -d local_branch after you merged it.No more dead branch 1 u/gammadistribution Feb 06 '15 Which is the joke.
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. 2 u/gfixler Feb 06 '15 git branch -d cool_feature 2 u/gammadistribution Feb 06 '15 If you don't want to collect dead branches, sure. 2 u/gfixler Feb 06 '15 I just did that for /u/sirin3's sake.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow. 1 u/crusoe Feb 06 '15 git branch -d local_branch after you merged it.No more dead branch 1 u/gammadistribution Feb 06 '15 Which is the joke.
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. 2 u/gfixler Feb 06 '15 git branch -d cool_feature 2 u/gammadistribution Feb 06 '15 If you don't want to collect dead branches, sure. 2 u/gfixler Feb 06 '15 I just did that for /u/sirin3's sake.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow. 1 u/crusoe Feb 06 '15 git branch -d local_branch after you merged it.No more dead branch 1 u/gammadistribution Feb 06 '15 Which is the joke.
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.
2 u/gfixler Feb 06 '15 git branch -d cool_feature 2 u/gammadistribution Feb 06 '15 If you don't want to collect dead branches, sure. 2 u/gfixler Feb 06 '15 I just did that for /u/sirin3's sake.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow. 1 u/crusoe Feb 06 '15 git branch -d local_branch after you merged it.No more dead branch 1 u/gammadistribution Feb 06 '15 Which is the joke.
2
git branch -d cool_feature
2 u/gammadistribution Feb 06 '15 If you don't want to collect dead branches, sure. 2 u/gfixler Feb 06 '15 I just did that for /u/sirin3's sake.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow. 1 u/crusoe Feb 06 '15 git branch -d local_branch after you merged it.No more dead branch 1 u/gammadistribution Feb 06 '15 Which is the joke.
If you don't want to collect dead branches, sure.
2 u/gfixler Feb 06 '15 I just did that for /u/sirin3's sake.Why would you want that? Then you only get a mess of far too many branches 1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow. 1 u/crusoe Feb 06 '15 git branch -d local_branch after you merged it.No more dead branch 1 u/gammadistribution Feb 06 '15 Which is the joke.
I just did that for /u/sirin3's sake.
1 u/gammadistribution Feb 06 '15 I also think /u/sirin3 is not very familiar with git workflow.
I also think /u/sirin3 is not very familiar with git workflow.
git branch -d local_branch after you merged it.
No more dead branch
1 u/gammadistribution Feb 06 '15 Which is the joke.
Which is the joke.
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.