LinuxForum.Fans
Тема

Не грузятся локальные изменения в git

Автор: u19977 2 сообщений 3105 просмотров
#199041

Я делал так:
[console]
:~/PI$ git clone https://xxxxx@xxx.xx/xxx/pi.git
Cloning into pi...
Password:
warning: You appear to have cloned an empty repository.
:~/PI$ ls
pi
:~/PI$ cd pi
:~/PI/pi$ vim hello
:~/PI/pi$ git add hello
:~/PI/pi$ git pull
Password:
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.
:~/PI/pi$ git push
Password:
Everything up-to-date
:~/PI/pi$ cd ../
:~/PI$ git pull
fatal: Not a git repository (or any of the parent directories): .git
:~/PI$ cd pi
:~/PI/pi$ ls
hello
:~/PI/pi$ git push
Password:
Everything up-to-date
:~/PI/pi$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: hello
#
[/console]
Первые раз работаю с git.Попытался загрузить простой текст в хранилище, по неопытности испробовал pull и push. По идее от push изменения должны были отправиться в хранилище, но этого не произошло.Скажите что я сделал не так?

#199631

Похоже ты забыл сделать git commit -a -m 'Comment it'.

Войдите или зарегистрируйтесь, чтобы ответить.