Mar-17-2018, 11:04 PM
This board seemed the appropriate place to post this.
I figured to throw up some of (working) python script on github (git version 2.14 on my linux). I set up an acct AND base repository (just the obligatory readme.md). I followed the instructions on lifehacker github installer guide
On Github if I click README.md, its text is foo. Obviously something went thru but I'm confused....
please help.
I figured to throw up some of (working) python script on github (git version 2.14 on my linux). I set up an acct AND base repository (just the obligatory readme.md). I followed the instructions on lifehacker github installer guide
On Github if I click README.md, its text is foo. Obviously something went thru but I'm confused....
please help.
Output:me@me-ubuntu:~$ git config --global user.name "mepyyeti"
me@me-ubuntu:~$ git config --global user.email "[email protected]"
me@me-ubuntu:~$ mkdir foo
me@me-ubuntu:~$ cd foo
me@me-ubuntu:~/foo$ git init
Initialized empty Git repository in /home/me/foo/.git/
me@me-ubuntu:~/foo$ touch README
me@me-ubuntu:~/foo$ git add README
me@me-ubuntu:~/foo$ git commit -m 'first commit'
[master (root-commit) b5f8aa9] first commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README
me@me-ubuntu:~/foo$ git remote add origin https://github.com/mepyyeti/foo.git
me@me-ubuntu:~/foo$ git push origin master
Username for 'https://github.com': mepyyeti
Password for 'https://[email protected]':
To https://github.com/mepyyeti/foo.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/mepyyeti/foo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
me@me-ubuntu:~/foo$ git --version
git version 2.14.1
me@me-ubuntu:~/foo$
pls advise??? thx...