Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent command for P4 shelve in GIT

Tags:

git

perforce

I have migrated from perforce to git . Earlier , in p4 , I could make the changes in my tree visible to others using p4 shelve. Everyone accessing the same p4 server were able to see my modifications . But now in GIT , I am looking for an equivalent command . I came across git stash but this enables changes to be visible only to me .

So , is there a way to make the local changes made by one user visible to everyone else in git ?

like image 477
Newbie Avatar asked May 19 '15 05:05

Newbie


1 Answers

Yes. Make your commits on a topic branch, push it and then tell everyone to look at that branch.

See for example the chapter Branching Workflows in the Git Book.

like image 168
Noufal Ibrahim Avatar answered Oct 10 '22 04:10

Noufal Ibrahim