[git-users] How to create a repo

2014-06-04 Thread Eric Fowler
This should be screamingly easy, in fact, I know I have done this before - 
but I forget how. 

I do remember that I had a hard time with it before.  :-(

I have created a file on my C:\ drive. Let us call it 
c:\mydir\helloworld.cmd . 

I have a Z: drive mapped with lots of drive space and write privs. This 
drive is accessible to the millions of programmer-slaves under my command. 

I wish to use z: as a repository for all my code, and for all my 
programmer-slaves code. 

I wish to add my helloworld.cmd file to that repository. 

How do I do this? 

I know how to use 'git init' to create a repo on C:, and how to use 'git 
add', 'git commit', and 'git push'. But I don't know how to tell 'git push' 
to use Z: as a target, and I don't know what I have to do to prepare z:\ to 
receive the files. 







-- 
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/d/optout.


Re: [git-users] How to create a repo

2014-06-04 Thread Eric Fowler
This worked. 

Thanks to Mr. Polonkai. 

Eric

On Wednesday, June 4, 2014 12:23:32 AM UTC-7, Gergely Polonkai wrote:

 You must first create an empty repository on Z:, add it as a remote in 
 C:\mydir, then issue the git push. Basically as follows, although I 
 don’t know how Windows git handles backslashes in paths, so maybe you 
 will have to replace it wich slashes: 

 C:\mydir Z: 
 Z:\ mkdir projectname 
 Z:\ cd projectname 
 Z:\projectname git init --bare 
 Initialized empty Git repository in Z:\projectname\ 
 Z:\projectname C: 
 C:\mydir git remote add origin Z:\projectname 
 C:\mydir git push origin master 

 On 4 June 2014 08:49, Eric Fowler eric@gmail.com javascript: 
 wrote: 
  This should be screamingly easy, in fact, I know I have done this before 
 - 
  but I forget how. 
  
  I do remember that I had a hard time with it before.  :-( 
  
  I have created a file on my C:\ drive. Let us call it 
  c:\mydir\helloworld.cmd . 
  
  I have a Z: drive mapped with lots of drive space and write privs. This 
  drive is accessible to the millions of programmer-slaves under my 
 command. 
  
  I wish to use z: as a repository for all my code, and for all my 
  programmer-slaves code. 
  
  I wish to add my helloworld.cmd file to that repository. 
  
  How do I do this? 
  
  I know how to use 'git init' to create a repo on C:, and how to use 'git 
  add', 'git commit', and 'git push'. But I don't know how to tell 'git 
 push' 
  to use Z: as a target, and I don't know what I have to do to prepare z:\ 
 to 
  receive the files. 
  
  
  
  
  
  
  
  -- 
  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 javascript:. 
  For more options, visit https://groups.google.com/d/optout. 


-- 
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/d/optout.


Re: [git-users] Another easy merge question

2013-10-30 Thread Eric Fowler
Given that I have already made a commit of my new changes in master (but
not a push), is this still the way to go?

Eric


On Tue, Oct 29, 2013 at 4:43 PM, William Seiti Mizuta 
william.miz...@gmail.com wrote:

 Hi Eric,

 to not lose your changes, you can create a branch which represents your
 current state of your repository. For this, just create a branch with git
 branch fallback command. It will be a copy of your current branch, so run
 this command when you are at master branch.

 Then, you can return to your remote master state with git reset --hard
 origin/master. When you want to recover the modifications, just merge the
 content of fallback branch: git merge fallback.


 William Seiti Mizuta
 @williammizuta
 Caelum | Ensino e Inovação
 www.caelum.com.br


 On Tue, Oct 29, 2013 at 9:07 PM, Eric Fowler eric.fow...@gmail.comwrote:

 I did a commit and push into master a while back. I stayed in master and
 made some changes, which I have committed but not pushed.

 I want to store the changes but revert my working code to the code I last
 pushed (for some regression testing), without permanently discarding the
 new changes.

 How can I do this?

 --
 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.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Git for human beings group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/git-users/xwpB4rnT2Kg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
cc:NSA

-- 
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] Another easy merge question

2013-10-29 Thread Eric Fowler
I did a commit and push into master a while back. I stayed in master and 
made some changes, which I have committed but not pushed. 

I want to store the changes but revert my working code to the code I last 
pushed (for some regression testing), without permanently discarding the 
new changes.

How can I do this?

-- 
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] Easy question about merging

2013-10-10 Thread Eric Fowler
I am a git newbie but have used other SCMs.

I have two branches, master and X. Both have changes, both have been 
committed. X has a lot of refactoring changes, master has a few bug fixes I 
don't want to lose. 

I want to merge X into master. But I'm chicken. What if the merge fails and 
leaves me with broken code? There is a deadline coming up and that would be 
disastrous.

So I want to know exactly what I have to do merge, *knowing* that I can 
easily get to *exactly what I have now*. 

What are the steps? Will 'git checkout master; git merge X --no-commit' do 
it? 

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.