[git-users] How to manage submodules and no-branch

2013-05-19 Thread Surya
We have a project and its under Git.. and a directory under the project has 
its own Git rep (a submodule).

We are having two different repos' on Github and my maintainer, linked one 
into another.. I just cloned the main repo, 

and followed 

$ git submodule init
$ git submodule update

I worked on the code and pushed the local branch (where I worked) to the 
Github before sending PR. Now, here is the deal, I don't see the submodule 
- git repo to be updated.

When I changed the dir into submodule

and executed

$ git branch

I found

* (no branch)
  master

How to fix my stuff now? 

Thanks

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] How to edit commit messages

2013-03-24 Thread Surya
The open source community in which I am contributing has certain standards 
on writing commit messages I didn't knew earlier. 

They want me to edit commit message according to standards.. So, how to 
edit commit messages?


-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] Should be use master for pull-request or any other branch

2013-03-22 Thread Surya
On Github,

I forked a repo, created a branch "b1" from master. Then wrote some code.
Now, should I send pull-request from "b1" or
merge b1 into master, then send pull-request from master?

what people do?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] basic queries on branching & merging in Git

2013-03-04 Thread Surya


On Saturday, March 2, 2013 9:29:55 PM UTC+5:30, Rahmat Budiharso wrote:
>
> the stash command is your friends, basically before you switch to master 
> from b1, you do a git stash:
>
> (on b1) $ git stash save -u
>
> this will save all your untracked and unstaged file in b1 in a stash, 
> after that you'll be back in a state just like you were when you first 
> branch off of master, now you can switch to master and branch off b2. after 
> you finish with b2 and merge it to master, you can go back to b1 and do a 
> git stash pop to get your stashed changes back in b1. I'm suggesting that 
> you do a 'git merge b2' before poping the stash.
>
> so in a nutshell, here's what you can do
>
> (*b1) git stash save -u
> (*b1) git checkout master
> (*master) git branch -b b2
> (*b2) hack or bug fixing and testing…
> (*b2) git commit
> (*b2) git co master
> (*master) git merge b2
> (*master) git co b1
> (*b1) git merge b2
> (*b1) git stash pop
>
> hope that's help
>
> Rahmat Budiharso
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> This seems to look fine.

For testing, I took 1 single file.
created a branch b1.. edited it. Instead of staging, I stashed... 
then checked out master
then created b2 branch
edited the file again (different data).. this time, staged-& did commit..
checked out master, and merged branch b2.

Now, I went back to b1.
did stash pop
now I see

Auto-merging conflict 

On Saturday, March 2, 2013 at 10:48 PM, Surya wrote:
>
> I am working of a project "X"
>
> I created a branch "b1" from "master". I am working on some improvements 
> in "b1". I didn't commit anything. Not even stage! 
>
> In the middle of the story, I found another bug need to be address soon. 
> So, I thought to create another branch "b2" from Master and work on it, 
> merge it with master, push it to origin.. and later on go back to "b1" job.
>
> However, when I switched to "master" to create "b2" branch for fixing bug, 
> I found all the "untracked" files of "b1" branch in "master"!! All I 
> thought till now is, until I "merge" or "push", from a branch  I don't 
> practically, change things in "master".. However, I see things now..
>
> This is stopping me to create "b2" branch from master to work on another 
> work.. independent of "b1" work.
>
>
> Hope you understand my situation.
>
> So, the below is summary of above- -- and what I am expecting.. How to do 
> it?
>
> The "master" is where actual code is..
> "b1" is where I currently work on an issue. Suddenly I need to go for 
> another issue. So, want to create "b2" branch from master to work on it.. 
> However, I am finding untracked files of b1 in master..
>
> I want to work on b2 issue independent of b1 issue.. and later merge into 
> master, and b1 if its really fixed.. 
>
> How to do this?
>
>
> How do people usually happen to deal with this situation ?
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to git-users+...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>  
>  
> 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] basic queries on branching & merging in Git

2013-03-02 Thread Surya
I am working of a project "X"

I created a branch "b1" from "master". I am working on some improvements in 
"b1". I didn't commit anything. Not even stage! 

In the middle of the story, I found another bug need to be address soon. 
So, I thought to create another branch "b2" from Master and work on it, 
merge it with master, push it to origin.. and later on go back to "b1" job.

However, when I switched to "master" to create "b2" branch for fixing bug, 
I found all the "untracked" files of "b1" branch in "master"!! All I 
thought till now is, until I "merge" or "push", from a branch  I don't 
practically, change things in "master".. However, I see things now..

This is stopping me to create "b2" branch from master to work on another 
work.. independent of "b1" work.


Hope you understand my situation.

So, the below is summary of above- -- and what I am expecting.. How to do 
it?

The "master" is where actual code is..
"b1" is where I currently work on an issue. Suddenly I need to go for 
another issue. So, want to create "b2" branch from master to work on it.. 
However, I am finding untracked files of b1 in master..

I want to work on b2 issue independent of b1 issue.. and later merge into 
master, and b1 if its really fixed.. 

How to do this?


How do people usually happen to deal with this situation ?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.