From: Fernando Rodriguez <frodriguez.developer@outlook.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ncurses: reductio ad absurdum
Date: Sun, 30 Aug 2015 21:42:36 -0400 [thread overview]
Message-ID: <BLU436-SMTP1583CFDC53ED96C7EC728D78D6B0@phx.gbl> (raw)
In-Reply-To: <693298.14572.bm@smtp116.sbc.mail.gq1.yahoo.com>
On Monday, August 31, 2015 12:50:04 AM Thomas Mueller wrote:
>
> > * Fernando Rodriguez <frodriguez.developer@outlook.com> [150829 12:59]:
> > On Friday, August 28, 2015 2:24:37 PM Rich Freeman wrote:
> > > Those who wish to use git can do so, and I'd encourage people to try.
> > > It really does have a lot of advantages. Oh, and it makes it really
> > > easy to contribute patches/etc (just edit whatever you want in
> > > /usr/portage and type git diff).
> >
> > I wouldn't advise that on the portage tree because if you edit any files
under
> > version control git will refuse to pull new changes until you either
commit
> > the changes or undo them by checking out the file.
>
> It will still pull but you'll potentially have conflicts to resolve.
>
> A bad idea in any case.
>
> Todd
>
> Now many repositories use git, and I need to know how to make changes to
some files, hopefully a small number, but still be able to update with git.
The best way is to create a branch for your changes, just run:
# git checkout -b new-feature
And now you're on a branch named new-feature, do your changes, commit them,
then checkout the master branch, do git pull and then merge your branch.
> I keep the modifications somewhere for safekeeping, as well as the originals,
but would want to see the updated files straight before remaking my
modifications.
>
> I looked through man pages, git pull --rebase didn't work; I got error
messages. Should I do "git reset" or should I "git checkout" each modified file
one-by-one before "git pull"?
If you commit your changes before doing the pull it will work in most cases.
Without commiting them it will never work (unless the files have not been
updated on the remote repo).
You can also stash them away with git stash, then pull, and then finally apply
your changes with git stash apply. See git-stash(1). If you do git checkout
you will loose your changes, that's why it requires to do it individually for
each file. With a branch you can also use git checkout --patch <branch> <file>
to apply the changes individually for each file so it comes in handy when
there's merge conflicts.
> There is a lot in git, learning git all the way through looks like a tall
order.
That's an understatement I think.
> Tom
>
>
--
Fernando Rodriguez
next prev parent reply other threads:[~2015-08-31 1:43 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 13:19 [gentoo-user] ncurses: reductio ad absurdum walt
2015-08-28 13:34 ` Marc Joliet
2015-08-28 14:16 ` Rich Freeman
2015-08-28 15:20 ` Philip Webb
2015-08-28 15:26 ` Alec Ten Harmsel
2015-08-28 15:51 ` Dale
2015-08-28 15:53 ` Emanuele Rusconi
2015-08-28 16:23 ` Dale
2015-08-28 23:15 ` Marc Joliet
2015-08-28 17:17 ` [gentoo-user] " James
2015-08-28 17:27 ` Emanuele Rusconi
2015-08-28 17:26 ` [gentoo-user] " Rich Freeman
2015-08-28 17:32 ` Mick
2015-08-28 18:24 ` Rich Freeman
2015-08-29 16:57 ` Fernando Rodriguez
2015-08-29 18:47 ` Todd Goodman
2015-08-31 0:50 ` Thomas Mueller
2015-08-31 1:42 ` Fernando Rodriguez [this message]
2015-08-28 17:40 ` covici
2015-08-28 18:47 ` Rich Freeman
2015-08-28 13:44 ` Rich Freeman
2015-08-28 14:24 ` [gentoo-user] " James
2015-08-28 14:53 ` Rich Freeman
2015-08-28 15:26 ` James
2015-08-28 17:37 ` Rich Freeman
2015-08-28 15:26 ` Alan Mackenzie
2015-08-28 17:41 ` Rich Freeman
2015-08-28 18:45 ` Alan Mackenzie
2015-08-28 19:10 ` Alec Ten Harmsel
2015-08-28 19:29 ` Rich Freeman
2015-08-28 22:34 ` Philip Webb
2015-08-29 14:25 ` Todd Goodman
2015-08-29 15:48 ` Dale
2015-08-29 16:35 ` Fernando Rodriguez
2015-08-29 18:19 ` Rich Freeman
2015-08-29 20:12 ` Fernando Rodriguez
2015-08-29 20:53 ` Neil Bothwick
2015-08-29 21:10 ` Fernando Rodriguez
2015-08-29 21:17 ` Fernando Rodriguez
2015-08-30 10:41 ` Neil Bothwick
2015-08-29 23:13 ` Dale
2015-08-30 19:44 ` Fernando Rodriguez
2015-08-29 18:45 ` Todd Goodman
2015-08-30 2:53 ` Dale
2015-08-29 0:07 ` walt
2015-08-29 3:32 ` Dale
2015-08-29 12:08 ` Mick
2015-08-28 16:55 ` covici
2015-08-28 16:22 ` James
2015-08-28 18:16 ` Rich Freeman
2015-08-29 3:04 ` James
2015-08-28 21:25 ` [gentoo-user] " Volker Armin Hemmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU436-SMTP1583CFDC53ED96C7EC728D78D6B0@phx.gbl \
--to=frodriguez.developer@outlook.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox