Closed robbschiller closed 11 years ago
Haha, okay so
git init
git push remote origin http...
git branch development
git checkout development
git push origin development
git branch lookup
git checkout lookup
git checkout development
git pull origin dev
git fetch
will tell you if it's not up to date but it wont actually update, i usually fetch
before I pull
git merge lookup
git push origin development
To summarize. You are always working on a feature branch. Whenever you are on your local dev branch it will be to pull changes that have happened remotely i.e. make sure your local branch is up to date with the remote one. The only other time you will be on it is to merge your feature branches into it.
Make sense? It's tricky, and really you just have to play with it.
Ok.
That's pretty much what I was thinking I think. I made a develop
branch already though... Did you see that?
Yo, I just edited my above comment, hit it to early
You made a dev branch but you pushed it to master, I think. You needed to git push origin development
I think I get it.
I don't know if it's a ton different that what I was thinking, other than I have never used lookup
or fetch
before. I had pushed some changes to the remote branch that's literally called develop
. I think you keep using short terms for development, but I made a branch on the remote server that's literally called develop
. Can you see that?
Yeah, it's there. lookup
is the name of the feature not a git command. Sorry if that was confusing.
You taught me how to do this.
Dude.
So, I made the local develop branch and did some work on it getting Grunt setup and trying to use the Grunt task for compiling sass. I don't know if I fully understand the how I'm supposed to use the branches quite yet. Here's how it sits in my head.
Step by step.
develop
branch withgit checkout develop
Lookup
git branch lookup
git checkout lookup
lookup
featuredevelop
branchgit checkout develop
lookup
branch into developgit merge lookup
I don't really get what is supposed to happen from there because that's where my understanding ends...