githubteacher / githubfordevelopers-april

GitHub for Developers Training
4 stars 11 forks source link

ques #43

Closed 1405115 closed 7 years ago

1405115 commented 7 years ago

just now i have created a branch deepak-india but is not showing in list git branch --all reason ?

githubteacher commented 7 years ago

Hey @1405115 ! Go ahead and type git pull in your command line and it should pop up.

Please let us know if you have any extra questions!

1405115 commented 7 years ago

yeah got it :) why git checkout deepak-india from origin not working ??

brianamarie commented 7 years ago

@1405115 Are you asking why it wasn't working before, or why it isn't working now?

1405115 commented 7 years ago

still this command is not working showing error: pathspec

brianamarie commented 7 years ago

@1405115 What is the output if you type git branch --all?

1405115 commented 7 years ago

list of branches including my branch deepak-india

brianamarie commented 7 years ago

Ok, so to checkout @1405115, type git checkout deepak-india.

1405115 commented 7 years ago

switched to a new branch message..

brianamarie commented 7 years ago

Great! To get caught up, you'll need to:

1405115 commented 7 years ago

i was using command git checkout deepak-india from origin . as sir directed ..

oky i am trying your commands .

brianamarie commented 7 years ago

Ah, I see @1405115. Let me know if you need any more help 😄

1405115 commented 7 years ago

sure :)

$ git add 1405115.md fatal: pathspec '1405115.md' did not match any files

brianamarie commented 7 years ago

@1405115 When you created a file, what was the name of it?

1405115 commented 7 years ago

how to create a file

brianamarie commented 7 years ago

Type touch <FILENAME.md>

1405115 commented 7 years ago

$ touch 1405115

brianamarie commented 7 years ago

Ok - now you should be able to type git add 1405115

1405115 commented 7 years ago

opps sorry you gave me wrong command earlier :)

1405115 commented 7 years ago

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/git $ git commit -m "my first commit" [deepak-india bf741c9] my first commit 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 1405115

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/githubfordevelopers-april (deepak-india) $ git push fatal: TaskCanceledException encountered. A task was canceled.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file. at System.IO.FileStream.Flush(Boolean flushToDisk) at Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush() at Microsoft.Alm.Cli.Program.Die(String message) at Microsoft.Alm.Cli.Program.Main(String[] args) Username for 'https://github.com':

brianamarie commented 7 years ago

@1405115 I think this error has to do with a configuration setting for your credential manager. Can you please type git config --global --list and post the output here?

1405115 commented 7 years ago

oky

1405115 commented 7 years ago

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/githubfordevelopers-april (deepak-india) $ git config --global --list core.autocrlf=true user.name=DEEPAK KUMAR user.email=1405115@kiit.ac.in

brianamarie commented 7 years ago

Okay, thank you @1405115. Is there anything different with git config --list?

1405115 commented 7 years ago

you wlcm

1405115 commented 7 years ago

yes number of lines in output increases but previous output is also included in it as it is .

brianamarie commented 7 years ago

Okay. Can you please paste the output @1405115?

1405115 commented 7 years ago

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/git hubfordevelopers-april (deepak-india) $ git config --global --list core.autocrlf=true user.name=DEEPAK KUMAR user.email=1405115@kiit.ac.in

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/git hubfordevelopers-april (deepak-india) $ git config --list core.symlinks=false core.autocrlf=true core.fscache=true color.diff=auto color.status=auto color.branch=auto color.interactive=true pack.packsizelimit=2g help.format=html http.sslcainfo=C:/Program Files (x86)/Git/mingw32/ ssl/certs/ca-bundle.crt diff.astextplain.textconv=astextplain rebase.autosquash=true filter.lfs.clean=git-lfs clean -- %f filter.lfs.smudge=git-lfs smudge -- %f filter.lfs.required=true filter.lfs.process=git-lfs filter-process credential.helper=manager core.autocrlf=true user.name=DEEPAK KUMAR user.email=1405115@kiit.ac.in core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false core.ignorecase=true remote.origin.url=https://github.com/githubteacher /githubfordevelopers-april.git remote.origin.fetch=+refs/heads/:refs/remotes/ori gin/ branch.master.remote=origin branch.master.merge=refs/heads/master push.default=simple branch.deepak-india.remote=origin branch.deepak-india.merge=refs/heads/deepak-india

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/git hubfordevelopers-april (deepak-india) $

brianamarie commented 7 years ago

@1405115 Please try running git config --unset-all credential.helper

brianamarie commented 7 years ago

Then, try to push again

1405115 commented 7 years ago

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/githubfordevelopers-april (deepak-india) $ git push fatal: TaskCanceledException encountered. A task was canceled.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file. at System.IO.FileStream.Flush(Boolean flushToDisk) at Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush() at Microsoft.Alm.Cli.Program.Die(String message) at Microsoft.Alm.Cli.Program.Main(String[] args) Username for 'https://github.com': 1405115@kiit.ac.in Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 283 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 1 (delta 0) To https://github.com/githubteacher/githubfordevelopers-april.git 062d7e0..bf741c9 deepak-india -> deepak-india

1405115@CSE1405115 MINGW32 ~/desktop/classrepo/githubfordevelopers-april (deepak-india) $

1405115 commented 7 years ago

is it on the track ?? why so many negative words in output like exceptions ,cancel ??

brianamarie commented 7 years ago

@1405115 I see your changes on the remote now, so I think it worked! Are you able to open a pull request?

why so many negative words in output like exceptions ,cancel ??

That's a good question - It likely has to do with some settings you have on your computer, maybe installed from previous work with git.

1405115 commented 7 years ago

oohhh oky

1405115 commented 7 years ago

46 pull requests . what is this pull request . i can see the list of pull request.

1405115 commented 7 years ago

kindly say my thanks to sir .

1405115 commented 7 years ago

and lots of thanks to you also. i learned a lot .

brianamarie commented 7 years ago

Okay, great! Let me know if you want any more help. The review videos here will be helpful if you'd like more info before tomorrow: #128