Wpis z mikrobloga

#programowanie #qt #git #github

Pomoże mi ktoś z konfiguracją gita pod QtCreatorem?

W ustawieniach mam wpisany tylko "C:\Program Files (x86)\Git\cmd" jako dodatkową ścieżkę do PATH.

Program kopiuje sobie projekt z neta i pokazuje zmiany bez problemu, ale kiedy próbuję zrobić Push dostaję taki tekst i nic się nie dzieje:

warning: push.default is unset; its implicit value is changing in

Git 2.0 from 'matching' to 'simple'. To squelch this message

and maintain the current behavior after the default changes, use:

git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

git config --global push.default simple

When push.default is set to 'matching', git will push local branches

to the remote branches that already exist with the same name.

In Git 2.0, Git will default to the more conservative 'simple'

behavior, which only pushes the current branch to the corresponding

remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.

(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode

'current' instead of 'simple' if you sometimes use older versions of Git)

Komenda "C:\Program Files (x86)\Git\cmd\git.exe" nie odpowiedziała w określonym czasie (60000 ms).

Nie za bardzo wiem co to za push.default i co zrobić.
  • 17
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach

@CichyGlosZTyluGlowy: Chodzi o to, że zmienił się domyślny sposób obsługi komendy push. Powinieneś odpalić (z cmd)

git config --global push.default simple
(albo git config --global push.default matching jak chcesz starą wersję pusha, ale to raczej niezalecane, nowy jest bezpieczniejszy).

Nigdy nie używałem gita pod windowsem, być może musisz wpisać całą
  • Odpowiedz
@CichyGlosZTyluGlowy: Jeżeli potrzebujesz hasła, to tak, to to. Alergia na terminale + git to złe połączenie, polecam się wyleczyć. Przy czym trzeba wiedzieć, że windowsowe CMD jest b. słabą powłoką, i ogólnie windows ma bardzo słabe środowisko terminalowe (chyba, żeby mówić o PowerShellu).
  • Odpowiedz
@CichyGlosZTyluGlowy: jest na to sposób, ale wątpię żeby ci się chciało. Musiałbyś wygenerować klucze SSH u siebie na kompie i wrzucić je na githuba. POtem w .git/config zmienić adres repo z "https.." na "git@...". Nie wiem jak to zrobić na windowsie od razu mówię. W każdym razie po tej operacji już nie powinien pytać o hasło.
  • Odpowiedz