Today my GRA added some stuff in git and I ran git pull. Up pops vi
asking me to explain what I did to cause a merge to happen. I gave the
reason that I ran git pull, then this
$ git pull
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
From ssh://
hpc.acf.ku.edu/crmda/projects/git/workshops
e3cbf32..d1410da master -> origin/master
Merge made by the 'recursive' strategy.
topics/simulation-montecarlo/R/montecarlo-01.R | 397
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
topics/simulation-montecarlo/presentation/montecarlo-1.pptx | Bin 0 ->
68217 bytes
2 files changed, 397 insertions(+)
create mode 100644 topics/simulation-montecarlo/R/montecarlo-01.R
create mode 100644
topics/simulation-montecarlo/presentation/montecarlo-1.pptx
After this, all seems well. Yes? If it was wrong, how would I know?
If this were SVN, I would understand what to do. There would be >> and
<< all over some files where changes were blended. I don't find any
such noise in the files mentioned.
Noticing no problem, I tested to see what happens
$ git push
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 657 bytes | 0 bytes/s, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://
paul...@hpc.acf.ku.edu/crmda/projects/git/workshops
d1410da..1ba792d master -> master
$ git pull
Already up-to-date.
How can you help.
1. Help me understand what the merge message means.
2. Tell me if the advice here is correct:
https://www.lullabot.com/blog/article/handling-git-pull-automatic-merges
That says never run git pull, but rather
$ git pull --ff-only
By the way, same site recommends embellishment of git log. This one is
color coded
$ git log --all --graph --pretty=format:'%Cred%h%Creset
-%C(yellow)%d%Creset %s'
* 1ba792d - (HEAD, master) I ran git pull at 12:39.
|\
| * d1410da - (origin/master, origin/HEAD) Added the monte carlo
presentation and R files
* | 5476005 - distributions readme empty
|/
* e3cbf32 - calculus
* 621b210 - incorporate probability content
* d8700e0 - Pascal's files
* c52bb1b - 3 empty files to make git acknowledge the directories
* 1d73fb6 - Imported from SI2014
* e35a2b5 - Imported from SI2014
* 3fbc52c - Transferred BS's 2014 lecture materials
* d09e9d7 - imported the functions lecture from 2014, revised it so it
can compile in lyx 2.1 without any special configuration. Added the pdf
output to the repo.
* 0a88f5e - The first commit!
* 495cc86 - Removed README.txt.
* 2c4a297 - Added README.txt.
--
Paul E. Johnson University of Kansas
Professor Director, Center for Research
Political Science Methods & Data Analysis
http://pj.freefaculty.org http://crmda.ku.edu
paul...@ku.edu
1541 Lilac Lane 1425 Jayhawk Blvd.
Blake Hall, Rm. 504 Watson Library, Rm. 470
Lawrence, Kansas Lawrence, Kansas
66045-3129 66045-0001
Ph:
(785) 864-3353