githubteacher / githubfordevelopers-april

GitHub for Developers Training
4 stars 11 forks source link

got error #141

Closed kumardss closed 7 years ago

kumardss commented 7 years ago

git lol fatal: unrecognized argument: --online

brianamarie commented 7 years ago

@kumardss I think you might have a spelling error. Try git log --oneline, not git log --online.

Does this answer your question?

kumardss commented 7 years ago

$ git lol git: 'lol' is not a git command. See 'git --help'.

Did you mean this? log

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lof git: 'lof' is not a git command. See 'git --help'.

Did you mean this? log

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git config --global alias.lol "log --online --graph --decorate --all"

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git config --global alias.lol "log --online --graph --decorate --all"

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

kumardss commented 7 years ago

$ git log --oneline 328b804 Merge pull request #1 from kumardss/readme-update d0d3d68 Update README url 5416d65 change shape colors 2710412 change index.html to inde.html 7b5464c change stats display color to green b7454c1 initializing git repo with all files

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git log --oneline --graph

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git log --oneline --graph --decorate

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git log --oneline --graph --decorate --all

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol git: 'lol' is not a git command. See 'git --help'.

Did you mean this? log

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lof git: 'lof' is not a git command. See 'git --help'.

Did you mean this? log

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git config --global alias.lol "log --online --graph --decorate --all"

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git config --global alias.lol "log --online --graph --decorate --all"

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lof git: 'lof' is not a git command. See 'git --help'.

Did you mean one of these? log lol

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git lol fatal: unrecognized argument: --online

brianamarie commented 7 years ago

@kumardss Ah, I see. So when you typed

Sudheer@Sudheer MINGW64 /e/Education (H)/GitHub/classrepo/github-games (gh-pages ) $ git config --global alias.lol "log --online --graph --decorate --all"

There was a spelling error. Try typing git config --global alias.lol "log --oneline --graph --decorate --all". Then, git lol should work.

kumardss commented 7 years ago

Thank you

brianamarie commented 7 years ago

👍 🎉

kumardss commented 7 years ago

$ git s git: 's' is not a git command. See 'git --help'.

Did you mean one of these? show status svn

brianamarie commented 7 years ago

@kumardss Yep - Eric set up a challenge. To have it do status with s, you'd need to set a git alias. 😄

kumardss commented 7 years ago

?

kumardss commented 7 years ago

git config --global alias.s "status --oneline --graph --decorate --all"

is above command correct?

brianamarie commented 7 years ago

@kumardss Just like git lol is an alias for git log --oneline --graph --decorate --all, Eric has set git s to be the same as git status. This is not a required function for the class, he was just demonstrating.

brianamarie commented 7 years ago

git config --global alias.s "status --oneline --graph --decorate --all"

@kumardss That would set git s to be git status --oneline --graph --decorate --all, which isn't what you want. You want it to be git status. So, you'd type git config --global alias.s "status"

kumardss commented 7 years ago

thank you

brianamarie commented 7 years ago

👍