Giter Club home page Giter Club logo

git_immersion's People

Contributors

adamlogic avatar agdillon avatar felixflores avatar gregmefford avatar ikem-krueger avatar jimweirich avatar nummi avatar rocketpuppy avatar ruben-ar14-mons avatar tonywok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git_immersion's Issues

Lab 30 - Traduction error in the "execute" section

The branch name in [http://gitimmersion.fr/lab_30.html#main_content](Lab 30) is the english one.
According to the previous names provided for each branch, the branch in this exercise should be named "saluer". So, the Execute Section should be like this :

Execute:

  • $ git checkout saluer

  • $ git merge master

The same translation error appears in the Output Section.

Lab 11 aliases

the go alias might cause conflicts with golang installation which also sets go as alias

Prepackaged repos should contain cloned_hello as well

Lab_02 says: repos — Prepackaged Git repositories so you can jump into the tutorial at any point. If you get stuck, just copy the desired lab into your working directory.

However, from one point on it is not clear which of the two (three) work repos is recorded in repos. In the beginning it is the hello repo. Later it is either cloned_hello or hello. It would be better to have every subdirectory in the repos items, like

   repos/
       ...
       lab_10/
         hello/
       ...
       lab_40/
         hello/
         cloned_hello/
       ...
       lab_50/
         hello/
         cloned_hello/
         hello.git/

Anyway... what about using the name snapshots instead of repos for this stuff?

First few steps fail to walkthrough how to create the hello.rb

Lab 3 Is formatted differently online and in the downloadable folders. In the folders there is FILE: hello.rb which tipped me off that maybe i need to use > hello.rb to create the file. However, the puts "Hello World" is not putting that text into the hello.rb file, which i expected the walk through to show me how to do these things. I'm using windows 10 with git bash and ubuntu so maybe that's my problem.

Title with pure http://

The title of this repository still suggests using HTTP://
Git Immersion Training (initially given at RailsConf 2010) http://gitimmersion.com

Convert textile to markdown

Pretty safe to say markdown seems to have won.

Could be a barrier to contribution and also removes redcloth dependency.

Refine Sample Output Inconsistencies ...(?)

The tutorial's sample output has a few consistency issues which could be addressed... but are not necessarily priorities given the existence of typos and other... lower-hanging fruit.

  1. Multiple sample output listings display a path containing the 'auto' directory, e.g. '/Users/jim/working/git/git_immersion/auto' - even though the directions (when followed) result in the 'work' directory being utilized.
  2. Some of the output listings display a different user ('tonywok'), e.g. '/Users/tonywok/src/git_immersion/auto/hello'.
  3. Output of '.git/config' & 'git hist --all' will vary from that displayed by the tutorial in small - but not trivial - ways due to the version of Git in use for the tutorial.

(NOTE: Item number 3 could be addressed by disclaiming output, either in context - which is multiple - or at the beginning of the tutorial...)

Rebase vs Merge

I absolutely love this tutorial, and want to get my undergraduates using it. Couple things:

  • I think, but am not sure, that the git reset --hard <hash> commands aren't working as intended in the newer version(s) of git (Lab 32 -- 34).
  • git checkout commands are working properly except maybe git switch is preferred with newer versions? (Lab 24 -- 27)

Lab 32 -- 34
git checkout greet
git reset --hard
git checkout master
error: Your local changes to the following files would be overwritten by checkout:
Rakefile
lib/greeter.rb
lib/hello.rb
Please commit your changes or stash them before you switch branches.
Aborting

git status
On branch greet
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: Rakefile
modified: lib/greeter.rb
modified: lib/hello.rb

git diff
diff --git a/Rakefile b/Rakefile
old mode 100644
new mode 100755
diff --git a/lib/greeter.rb b/lib/greeter.rb
old mode 100644
new mode 100755
diff --git a/lib/hello.rb b/lib/hello.rb
old mode 100644
new mode 100755

Revise Tutorial 'Contact Us' Link

The 'Get in contact with Neo' link could be made functional, e.g. made a 'mailto:' link with a default addressing (a mailing list for 'edgecase/git_immersion' repository contributors, say...); good/not good...?

Lab 15 - bring up to date with current suggestion text

In Lab 15, current git no longer suggests "git reset head". See below for current behavior:

% git status
On branch main
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   hello.rb

Upgrade to more modern ruby

The project currently specifies 1.9.3 in the .ruby-version

WARNING: ruby-1.9.3-p551 is past its end of life and is now unsupported.

Windows Friendly

A majority of visitors are on Windows — what can we do to help them out? All the shell commands are currently for *nix.

Also, we do we need to have Ruby as a dependency?

Prepackaged repos refer to nonexisting remote

So at some point I got stuck and copied repos/lab_40 to my working directory as cloned_hello. When I checked what I got I found that I have a remote named origin. However, the command

$ git remote show origin

resulted in a nonexistent absolute path error message (/Users/.../working/git/git_immersion/auto/hello)

I don't know if it is valid or not, but it seems that when editing the .git/config file in the cloned repo:

url = ../hello

git could get rid of that absolute path and that error message.

Lab_49 Pulling Shared Changes contains too few explanations

Executing

git branch --track shared master
Branch 'shared' set up to track local branch 'master'.

It seems confusing to me. Being on the master branch, do we really need another local branch (tracking the local master) for pulling from the shared repo? What is this extra branch used for?
I omitted the git branch... command and was able to pull the changes out of the shared repo.

 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> sharedrepo/master
Updating 12cb2ff..91a8e6d
Fast-forward
 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thank you

Issues with current git_immersion tutorial.

First thanks for the tutorial. I've encountered some issues in the later Labs. Also the current version is using switch and restore in place of other commands, which shows up early. Those I was able to work around as there is backward compatibility with earlier commands it seems. In any event here are my notes from the later labs.

Git Immersion Notes

Issues encountered with this tutorial.
Local installed git version is 2.25.4.

LAB 40
Remote Branches

Tutorial says:
• $ git branch
• * master

Local result:
• $git branch
• * greet

$git branch -a

  • greet
    remotes/origin/HEAD -> origin/greet
    remotes/origin/greet
    remotes/origin/master

Lab 42
Fetching Changes

Tutorial says:
$ git fetch
From /Users/jim/Downloads/git_tutorial/work/hello
e0cc19e..b39ac69 master -> origin/master

Local result:
$git fetch
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), 375 bytes | 375.00 KiB/s, done.
From /home/gump/myCloud/mygit/hello
fadb8ee..888d9a4 greet -> origin/greet

Lab 43
Merging Pulled Changes

Tutorial says:
$ git merge origin/master
Updating e0cc19e..b39ac69
Fast-forward
README | 1 +
1 file changed, 1 insertion(+)

Local result:
$git merge origin/master
Already up to date.

As there was a conflict between the Tutorial and reality, I attempted the following based on what I saw in the git -hist output from the cloned_hello repository:

  • 888d9a4 2020-07-01 | Changed README in original repo (origin/greet, origin/HEAD) [Gayland G. Gump]
  • fadb8ee 2020-07-01 | Hello user Greeter (HEAD -> greet, origin/master) [Gayland G. Gump]

I executed the following:

git merge origin/greet

with the following results:

Updating fadb8ee..888d9a4
Fast-forward
README | 1 +
1 file changed, 1 insertion(+)

and then the check of README, cat README, yielded:

This is the Hello World example from the git tutorial.
(changed in original)

Lab 45
Adding a Tracking Branch

Not going to bother telling you what the Tutorial says will just report what I am seeing on my local system and any alternatives I can guess at.

 git branch --track greet origin/greet
fatal: A branch named 'greet' already exists.

git branch --track greet origin/master
fatal: A branch named 'greet' already exists.

Don't have a clue where to go from here. Have decided to leave the tutorial at this point as I am not sure if the time will be well spent in view of my current needs.

Thanks, the tutorial is great. Hope my feedback will help you pull it up to a current state.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.