ruby on rails - Can't push project files to bitbucket (Edit: solved!) -
i'm following along michael hartl's rails tutorial. here's image of i'm at:
http://i.stack.imgur.com/e9yve.png
my problem same cd: /path/to/my/repo: no such file or directory
what path repository/how discover on own? i've tried everything. cd root of project using these commands, cd go 1 folder lower, cd go project_name/.git before using commands, etc. @ point, output same.
1: using git remote add origin git@bitbucket.org:[mynamehere]/hello_app.git # yields:
fatal: remote origin exists.
2: git push -u origin --all # yields:
no refs in common , none specified; doing nothing. perhaps should specify branch such 'master'. fatal: remote end hung unexpectedly up-to-date
3: git push -u origin --tags # yields exact same results command above.
according tutorial, when try view project on bitbucket should seeing files , folders. no matter how many times refresh, bitbucket swears that project empty, must doing wrong. can fix this? i'm thinking has specifying correct path repository, don't know how , tutorial i'm reading has no mention of step whatsoever, bitbucket does. (the tutorial outdated in several places far, being 1 of them.) here's picture of discrepancy between bitbucket , tutorial:
http://i.stack.imgur.com/ohjiw.png
again, tutorial makes no mention of initial "cd" command , doesn't tell how specify path cloud9 ide repository on entirely different website, bitbucket.
maybe should create project on computer, copy files need old 1 , run in order /workspace/mynewproject folder: git init
git add .
git commit -m "my first commit"
git remote add origin git@bitbucket.org:[mynamehere]/hello_app.git
, git push -u origin --all
Comments
Post a Comment