Re: [git-users] .gitignore ignored?

2015-10-01 Thread Rustom Mody
On Fri, Oct 2, 2015 at 5:30 AM, Sascha Manns  wrote:
> Hello list,
>
> actually i'm having some trouble by using git. My .gitignore shows:
>
> sascha@sascha-desktop:~/RubymineProjects/hoe-manns$ cat .gitignore
> Index.yml
> hoe-manns.gemspec
> .yardoc
> SetupConfig
> SetupReceipt
> README.txt
> doc
> ChangeLog
> pkg
> .teamcity
> .idea
> Changelog
>
> But a git status says me:
>
> sascha@sascha-desktop:~/RubymineProjects/hoe-manns$ LANG=C git status
> On branch develop
> Your branch is up-to-date with 'origin/develop'.
> Changes not staged for commit:
>   (use "git add ..." to update what will be committed)
>   (use "git checkout -- ..." to discard changes in working directory)
>
> modified:   .idea/workspace.xml

A file that is in the repo (already) needs to be removed first to be
ignored. See:
http://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository

I prefer this for the task (assuming changing history is ok)
https://rtyley.github.io/bfg-repo-cleaner/

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


[git-users] shallow clone recommendations

2015-09-24 Thread Rustom Mody
I understand that of late shallow clones have improved in various ways
I just tried to clone emacs

Shallow emacs 262M
Full clone 441M

In particular
shallow emacs' .git 38M
Full emacs' .git 228M

Most important it was some 2 hours with full and less than ½ hr with
shallow

However emacs devs prefer people to do a full clone

I was wondering if there is/are have-the-cake-and-eat-it options. eg
1. Clone from a certain recentish tag to now
2. Change from a depth --1 to a depth --25 later
3. etc

Note: Emacs is probably extreme in having a 40 year history(!)

-- 
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] Examining forks

2015-08-23 Thread Rustom Mody
On Sun, Aug 23, 2015 at 3:26 PM, Philip Oakley philipoak...@iee.org wrote:

 I have a project on github which has been forked (friendly!).

 What is the best workflow to examine merge the commits in the fork?

 Of course I can git clone it separately but it seems that way I will miss
 out on all the git branch etc goodness


 Just set up the Fork as a remote, and Fetch it (not Pull which would merge
 it).

 You will then see all of the forks data (assuming a full refspec for the
 fetch) under the 'remote's' branches.


Yeah I gathered that remotes is what I want However I am a bit wooly around
them.
Particularly the syntax of the stuff that gets added to the remotes section
of the repo-config
remote+fetch (not pull) is new -- thanks



 It can take a sudden moment of realisation that remotes (rtb's) are
 actually local, and are just a convenient naming convention to keep our(*)
 little minds happy.


Thats a good realization.
Yeah I came to it also but its good that you confirm that

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


[git-users] Examining forks

2015-08-22 Thread Rustom Mody
I have a project on github which has been forked (friendly!).
What is the best workflow to examine merge the commits in the fork?

Of course I can git clone it separately but it seems that way I will miss
out on all the git branch etc goodness

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


[git-users] graft branches from one repo to another

2015-07-27 Thread Rustom Mody
I have two repos R1, R2.
They should have been the same but due to some goofup they diverged.
[R1 was on bitbucket; copied to github as R2; something not quite right
with the copy I guess]

Now R2 has moved ahead.
But R1 has branches b1 b2 that did not get to R2.

How to graft only branch b1, b2 from R1 to R2?

-- 
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] Avoid EOL hell

2015-06-14 Thread Rustom Mody
On Tue, Jun 2, 2015 at 11:07 PM, Konstantin Khomoutov 
flatw...@users.sourceforge.net wrote:

 On Tue, 2 Jun 2015 22:09:46 +0530
 Rustom Mody  wrote:

  Setting up for a project in which both linux and windows will be the
  OSes.
 
  After spending some time searching for solutions I am as confused as
  ever. What are the optimum crlf settings so that files (maybe of
  designated types, say
  .c and .h files) are CRLF on windows and LF on linux?

 I recommend reading through [1].

 In short, core.autocrlf set to auto on Windows should, in theory,
 ensure that the text files have CRLF EOLs in the work tree and LFs
 in the index and the object store.  But that's, well, in theory, and
 you might need to cater for the bogosity of particular tools.

 (I'm assuming you're using Git for Windows on Windows.  Cygwin's Git
 lives in its own POSIX-y world and considers LFs to be the platform's
 native EOLs.  The installer of GfW sets core.autocrlf to auto
 by default, and, AFAIK, there's no way to tell it not to.)

 1. https://github.com/mono/mono/blob/master/.gitattributes


Thanks Konstantin for the pointer.
Can hardly claim to understand all the ins and outs of this...
From http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/ I
gather this is the old system
And in the new system those crlfs should/would be text
[This is also what I infer from the  somewhat cryptic section
Backwards compatibility with crlf attribute
of the gitattributes man-page]

Is that correct?

IOW I can attribute all the file-types I want correct as per OS as text?

Rusi
-- 
http://www.the-magus.in
http://blog.languager.org

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


[git-users] Avoid EOL hell

2015-06-02 Thread Rustom Mody
Setting up for a project in which both linux and windows will be the OSes.

After spending some time searching for solutions I am as confused as ever.
What are the optimum crlf settings so that files (maybe of designated
types, say
.c and .h files) are CRLF on windows and LF on linux?

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


[git-users] Mercurial

2015-04-14 Thread Rustom Mody
Not exactly a git question...
If someone (who prefers git) has to work with a mercurial repo, are
one of the git-mercurial bridges preferred or should one just stick to
mercurial?
If so which bridge is recommended?

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


[git-users] Workflow for resurrecting an old program

2014-04-10 Thread Rustom Mody
I am interested in a rather old program -- first version was written more
than 40 years ago -- in the Algol era!

Its gone through various IBM/CDC machines until it ran on Irix in the 90s
and briefly Windows until .Net 2003. After that its not exactly runnable.

As may be evident the original programmer is elderly and while spunky, not
exactly upto dealing with modern technology.  He has shown interest in
working with some of us who want his codebase modernized.

So far thats not really relevant to git-usage.


The issue that is a bit non-standard from git pov is that there is no clear
starting tarball because some of the stuff is so old. So while we work on
cleaning up and getting compiles through he is scrounging around for
missing files (code and data).  So should I handle this with git tools like
branches, tags etc or just maybe keep a directory called original-stuff and
put things there as they are found/provided?

The other (minor) issue is whether to use bitbucket or github.  I myself
prefer bitbucket but would be interested to know others' findings on pros
and cons.


 Rusi
-- 
http://blog.languager.org

-- 
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] Can I use git as auto-updater

2014-03-20 Thread Rustom Mody
On Thu, Mar 20, 2014 at 10:55 AM, Senjin Dragon
senjin.the.dra...@gmail.com wrote:
 Let me sketch out what I'm trying to do. I'm not sure if I can use git for
 this or not. I think I can but I'm getting headaches going through the
 documentation and experimenting. It's all a bit confusing to me.

 I run a minecraft game server and associated client on my machine and a
 friends machine who's computer-illiterate. I'm quite actively maintaining
 this server by updating the various mods and configuration files that go
 with it. These files also have to end up on the clients. On my own machine I
 can simply copy it over, rename and delete the files. But it would be really
 nice if I can do this on my friends pc as well. That he starts the game, it
 checks for updates/changes, downloads and overwrites the existing files.
 Doing the renames, deletes and updates for me.

Theres an upcoming bunch of git-using tools with this (kind of) intent:
mr, myrepos, etckeeper, vcsh.

The mailing list where all these are discussed is here
http://vcs-home.branchable.com/

Im an ignoramus who mostly lurks there (as here!) so dont ask me more!

Rusi


-- 
http://www.the-magus.in
http://blog.languager.org

-- 
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] Question about .gitignore

2014-03-10 Thread Rustom Mody
On Tue, Mar 11, 2014 at 2:50 AM, rhugga chuck.car...@gmail.com wrote:

 So .gitignore is used to hide certain file types which is great. But how do
 you have it ignore the file itself?

 I put .gitignore in the file itself and that works but seems more like a
 work around than as intended.

The reasons and explanations others have given to not ignore gitignore
should not be ignored :-)

However if you insist, the manual does give options to do what you want
From http://git-scm.com/docs/gitignore

SYNOPSIS
$HOME/.config/git/ignore, $GIT_DIR/info/exclude, .gitignore

The last option ie .gitignore, is the standard and recommended way.
The other two will give you what you want ($GIT_DIR is normally just
your .git directory)

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


[git-users] where/how did files disappear?

2013-07-08 Thread Rustom Mody
I am an org-mode (emacs-mode) user.
org-mode uses git -- so those who want to stay upto date with the devel
version use git pull, followed by a re-build.
Recently the build system has been made more elaborate having a number of
makefiles and pre-process makefiles:
http://orgmode.org/worg/dev/org-build-system.html gives a summary of this
infrastructure.

Now recently my org-mode stopped working. I narrowed the problem to some
disappeared makefiles.
[git status output below]
Running git reset --hard now gives me

$ git status
# On branch master
nothing to commit (working directory clean)

and now orgmode seems to be working.

So now my questions:
1. How did/could those files have been deleted -- as I said I am not a
developer and so have none of my own modifications?
2. Is reset --hard the correct way?

Regards
Rusi

--- git status output 
$ git status
# On branch master
# Changes not staged for commit:
#   (use git add/rm file... to update what will be committed)
#   (use git checkout -- file... to discard changes in working
directory)
#
#deleted:.dir-locals.el
#deleted:.dir-settings.el
#deleted:contrib/scripts/.gitignore
#deleted:contrib/scripts/dir2org.zsh
#deleted:contrib/scripts/ditaa.jar
#deleted:contrib/scripts/docco.css
#deleted:contrib/scripts/org-docco.org
#deleted:contrib/scripts/staticmathjax/
.gitignore
#deleted:contrib/scripts/staticmathjax/README.org
#deleted:contrib/scripts/staticmathjax/chrome/chrome.manifest
#deleted:contrib/scripts/staticmathjax/chrome/content/main.js
#deleted:contrib/scripts/staticmathjax/chrome/content/main.xul
#deleted:contrib/scripts/staticmathjax/defaults/preferences/prefs.js
#deleted:contrib/scripts/x11idle.c
#deleted:doc/.aspell.org.conf
#deleted:doc/.nosearch
#deleted:doc/Documentation_Standards.org
#deleted:doc/Makefile
#deleted:doc/dir
#deleted:etc/Makefile
#deleted:mk/fake_change_log.pl
#deleted:mk/git-changelog
#deleted:mk/guidesplit.pl
#deleted:mk/list-hooks.pl
#deleted:mk/manfull.pl
#deleted:mk/mansplit.pl
#deleted:request-assign-future.txt
#deleted:testing/.gitignore
#deleted:testing/examples/include.org
#deleted:testing/examples/include2.org
#deleted:testing/examples/link-in-heading.org
#deleted:testing/examples/links.org
#deleted:testing/examples/no-heading.org
#deleted:testing/examples/normal.org
#deleted:testing/examples/ob-awk-test.in
#deleted:testing/examples/ob-awk-test.org
#deleted:testing/examples/ob-lilypond-broken.ly
#deleted:testing/examples/ob-lilypond-broken.org
#deleted:testing/examples/ob-lilypond-test.error
#deleted:testing/examples/ob-lilypond-test.ly
#deleted:testing/examples/ob-lilypond-test.org
#deleted:testing/examples/ob-maxima-test.org
#deleted:testing/examples/ob-octave-test.org
#deleted:testing/examples/ob-screen-test.org
#deleted:testing/examples/org-exp.org
#deleted:testing/examples/property-inheritance.org
#deleted:testing/jump
#
no changes added to commit (use git add and/or git commit -a)

-- 
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] Re: how to change message of old commit

2012-07-23 Thread Rustom Mody
On Mon, Jul 23, 2012 at 11:54 AM, Thomas Ferris Nicolaisen tfn...@gmail.com
 wrote:


 Could you point me to that 'git-bash thing'? -- Looks very useful


 Note that it only works for zsh (z-shell) and bash, so you'll need to run
 either Linux, Mac, or Windows with Cygwin (or Git Bash).

 In the above shells, you have a variable called the PS1 which value
 appears in front of your command line prompt (typically username@machine,
 timestamp and stuff like that). There's a very popular script called
 git-prompt.sh that adds useful Git context to the PS1. It's available here:

 https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh


Thanks. Neat!

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] managing only-local changes

2011-11-20 Thread Rustom Mody
When I am working with a certain git repo I need to make a 1 line
change to the Makefile (for adapting to my paths)

So then whenever I do git pull I get

error: Your local changes to the following files would be overwritten by merge:
Makefile
Please, commit your changes or stash them before you can merge.

What is the normal approach to solving this?

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: managing only-local changes

2011-11-20 Thread Rustom Mody
On Mon, Nov 21, 2011 at 1:01 AM, Thomas Ferris Nicolaisen
tfn...@gmail.comwrote:

 The normal approach is pretty much what the error message says: Either
 commit first, or stash the changes. Example of the latter approach:

 $ git pull
 error msg
 $ git stash save
 $ git pull
 $ git stash pop
 handle conflicts


Beautiful -- Thanks!

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] managing only-local changes

2011-11-20 Thread Rustom Mody
On Sun, Nov 20, 2011 at 11:59 PM, radovan bast radovan.b...@uit.no wrote:

 is it a repo that you only use or a repo where you contribute to?




 if you also contribute to the repo then i would change your Makefile:
 separate it into a generic part and a specific part (Makefile.config,
 included in Makefile).
 it would then make sense to take Makefile.config outside of version
 control.


Thanks.  That brings up matter for another thread but for now I just want
to say that you mean I guess??
Makefile.config : specific part
Makefile: generic part

[Just for anyone else who reads this thread]

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] smartgit

2011-03-28 Thread Rustom Mody
Well thanks Konstantin for the answer!
Ive tried a couple of times to post to the group and not succeeded earlier
Did you see this now or earlier? I posted this 10 days ago.


On Mon, Mar 28, 2011 at 2:32 PM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Fri, 18 Mar 2011 14:02:11 +0530
 Rustom Mody rustompm...@gmail.com wrote:

 A noob question:
 As people may know smartsvn is quite popular among svn clients
 The folks making smartsvn have now made smartgit

 http://www.syntevo.com/smartgit/index.html

 Is this a good way to start using git?

 After cursory glancing through that product's web page, I doubt it.
 This possibly could be a good idea if you're absolutely clueless about
 how VCSes work, simply due to higher explorability of a
 novice-oriented GUI interface compared to a bunch of command-line tools
 which require prior knowledge from books and manual pages.
 Git also comes with its stock GUI utilities (git-gui and gitk), but
 they also assume a certain level of Git knowledge.

 On the other hand, be aware, that tools such like this one tend to have
 two problems:
 * They tend to be smart and do stuff behind your back deviating from
  the normal behaviour of the underlying VCS. For instance, a tool might
  help you by not exposing the concept of index or staging area
  which is central to most of usual Git workflows, and instead the tool
  could try to make you feel more like using Subversion.
  It's hard to decide whether it's good or not.
 * Most books and articles on Git (actually, all I've seen) discuss
  conventional Git tools. Hence, if you will approach such a book
  while sticking to some high-level GUI tool, you will probably find
  yourself in the need of translating the book's vocabulary and examples
  to those of your tool.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] smartgit

2011-03-27 Thread Rustom Mody
A noob question:
As people may know smartsvn is quite popular among svn clients
The folks making smartsvn have now made smartgit

http://www.syntevo.com/smartgit/index.html

Is this a good way to start using git?

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.