Article View: pl.comp.programming
Article #205176Git i repozytorium na Sourceforge
From: Borneq
Date: Fri, 19 Apr 2013 23:07
Date: Fri, 19 Apr 2013 23:07
36 lines
2190 bytes
2190 bytes
Jest dokładna informacja, krok po kroku: First time using Git cd myproject git init # add all your files. Use can use specific filenames or directories instead of '.' git add . git commit -a -m 'Initial commit' git remote add origin ssh://borneq@git.code.sf.net/p/neopack/code git push origin master git branch --set-upstream master origin/master # so 'git pull' will work later Existing repository using Git cd myproject git remote add origin ssh://borneq@git.code.sf.net/p/neopack/code git push origin master git branch --set-upstream master origin/master # so 'git pull' will work later -------------------------------------------------------------------------------------------- git add . - dodaje ok, tworzy mi na dysku katalog .git git commit -a -m 'Initial commit' tutaj fatal: Paths with -a does not make sense., moge usunąc opcję -a ale z kolei mam błąd: error: pathspec 'commit'' did not match any file(s) known to git. przyjmuje hasło ale wypisuje: error: src refspec master does not match any. error: failed to push some refs to 'ssh://borneq@git.code.sf.net/p/neopack/code' D:\proj\neoPack>git branch --set-upstream master origin/master The --set-upstream flag is deprecated and will be removed. Consider using --trac k or --set-upstream-to fatal: Not a valid object name: 'origin/master'.
Technical Details
Message-ID:
<kksimm$kl5$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: "Borneq" <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.programming Subject: Git i repozytorium na Sourceforge Date: Sat, 20 Apr 2013 01:07:01 +0200 Organization: ATMAN - ATM S.A. Lines: 37 Message-ID: <kksimm$kl5$1@node2.news.atman.pl> NNTP-Posting-Host: 91.239.205.62 Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1366412822 21157 91.239.205.62 (19 Apr 2013 23:07:02 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Fri, 19 Apr 2013 23:07:02 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit