Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLibor Gess
6,880 PointsWhere I can see the commit files?
Where I can see the files I just commit. Is there any website like GitHub that I can see my branch?
2 Answers
Routine Poutine
26,050 PointsHi Libor,
When you commit a file it is no longer in the list to be added or committed. I believe you see it immediately before you in the text editor. If you want to see a previous commit, you can change the branch using git checkout
. You may need to change your perspective to the master branch.
If you open a new repository on Github, you'll see two commands near the bottom, after putting in the name of your repository and describing it:
git remote add origin https://github.com/userName/practice.git
git push -u origin master
If you type these into the terminal after committing, you'll see them uploaded to your GitHub profile in the repository. The files will be listed there, as well as in your local directory.
I'm new to GitHub myself, but only responded because your post has been up for 18 hours.
Best,
Matt
Libor Gess
6,880 PointsGood morning Matthew,
thank you very much for your response!
I am still straggling with the git. I created branch call test. Than I tried to commit file call index.html
in the folder where I am keeping my practice ~/Desktop/TreeHouse/JavaScript/practiceWebSite/Coffee2
by flowing commands from the Git bash:
git remote add origin https://github.com/username/test.git
git push -u origin master
But what I am pushing into the repo are files from my machine even I am in the folder of the Coffee2. Please have look down below.
../../../../../.node_repl_history
../../../../../.vscode/
../../../../../AppData/Local/Adobe/
../../../../../AppData/Local/Apple Computer/
../../../../../AppData/Local/Apple Inc/
../../../../../AppData/Local/Composer/files/intervention/
Can someone please explains what I am doing wrong? Thank you very much.