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 trial

Development Tools Git Basics Working With Remote Repositories Pushing and Pulling

Traci McGrew
Traci McGrew
2,559 Points

Did the instructor make a cut in the video at like 2:57? Or did he use a key shortcut or something? Push and Pull Git

At about 2:53 we commit some changes while in treehouse ~/my_really_cool_project. The next command after that is git checkout master so that puts you back on the master, but you're still in my_really_cool_project. The prompt is still treehouse ~/my_really_cool_project $ at 2:57.

Then he executes the clear command and as it moves everything up and off the screen the prompt also suddenly changes to tree ~/our_clone_project $. How did he get there? There is no explanation. It is unclear to me if we just jumped to pretend we are someone else or if he hit some shortcut that jumped him into the other directory. Usually he shows every step of navigating the branches etc. as we're switching (the whole point of these videos is learning to navigate the branches and push and pull) so I'm really confused. He never typed in the directory change- we just jumped somehow. Or did he hit some combination of keys to use a shortcut that jumped him there? He did that in a few early videos of the course and others questions and comments helped me to figure out what he did.

So, anyone know what he did here? Confused. Thanks.

2 Answers

All Tommy did was change the directory from my_really_cool_project to our_clone_project. It looks like he stopped the video and made the change and resumed.

Traci McGrew
Traci McGrew
2,559 Points
(running Git in console)

treehouse ~/my_really_cool_project $ git commit -a -m β€œOnly one exclamation point please.”

info here that it worked, etc.

treehouse ~/my_really_cool_project $ git checkout master

switched to branch β€˜master’

treehouse ~/my_really_cool_project $ clear

treehouse ~/our_clone_project $