Open miguelmartins17 opened 4 years ago
@miguelmartins17 good question. if you are in the root of the project simply run git add .
(the .
means "add everything in this directory and all sub-directories). e.g:
cd learn-flutter
git add .
git commit -m 'add complete code for TDD & Architecture Video 9 for issue #15'
After executing these commands this was the result.
@miguelmartins17 that's strange. 😕
Did you add the project files to the learn-flutter/tdd-architecture-example
directory? 💭
If you want to show us your desktop via Zoom call, just message in Signal/@dwyl
💻
It might also help to run the git status
command and git log
to get a fuller picture.
This is the result when I run the git log
command.
@miguelmartins17 after our Zoom call do you feel more confident in your git
skills?
@nelsonic I tried to push the code to the GitHub but when I run the git push
command this shows up.
@miguelmartins17 what did Google say when you pasted the error message and searched? 💭
The solution is right there in the yellow text. You need to run git pull
before git push
because there are changes on GitHub that are not reflected on your localhost
...
@nelsonic I tried to look for answers like using git pull but this only comes to me when I run the command.
@miguelmartins17 which branch do you want to be working on? (maybe it's time that you give your branches more descriptive names) 💭
The branch miguelmartins17-patch-4
didn't show up at the terminal so I created it. Of course I should give the branches a better name.
@nelsonic I think I'm forgetting some steps so I can put the project in the GitHub.
@miguelmartins17 agreed. Please revisit the Git guide: https://git-scm.com/book/en/v2 The better you know Git the faster you can get your work done. We all take Git skills for granted much like we do with arithmetic, but it's worth knowing well.
I ran the git push
command and this appears.
So I tried to run the command using the way they describe it there:
git push --set-upstream origin miguelmartins17-patch-4
.
After that I thought about using git pull
, and I got this result.
@miguelmartins17 did you run the suggested command?
git branch --set-upstream-to=miguelmartins17-patch4
Followed by:
git pull
@miguelmartins17 any luck/update?
@miguelmartins17 please run this commend in your terminal:
git remote set-url origin git@github.com:dwyl/flutter-counter-example.git
git push -u origin master
https://github.com/dwyl/flutter-counter-example
I finished on pushing the empty project to this repository.
@miguelmartins17 now that you have your SSH key setup for GitHub, 🔐 you should be able to push code to GitHub without any issues. 👍
@nelsonic Thanks!!! 😄
How can I push the code of an entire application? Do I need to push file to file or folder to folder or can I do it all right?