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 GitHub Basics Working By Yourself Push Your Project to GitHub

agustin arriaga
seal-mask
.a{fill-rule:evenodd;}techdegree
agustin arriaga
Full Stack JavaScript Techdegree Student 5,099 Points

working on github basics. I am having trouble moving .py files into Treehouse folder.

The command used was mv *.py Treehouse. I also tried git mv *.py Treehouse, mv *. py Treehouse.

1 Answer

Ezra Siton
Ezra Siton
12,644 Points

Follow this:

Your Identity

Set your user name and email address (Like facebook, treehouse and so on) - you should have Github user to work with github. Let's imagine this is your user name and email:

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Create a folder

Later we push this folder to Github repository (mkdir = make directory)

mkdir helloWorld

https://en.wikipedia.org/wiki/Mkdir

Move files

The destiny folder url: /helloWorld

You are now in the root folder (/) ==> mv (short for move) - from this-loaction to "helloWorld"

mv *py helloWorld

Go to helloWorld folder (cd = change directory).

cd helloWorld 

Next run ls to get (ls = list computer files).

ls

You should get the list of files:

lumberjack.py  number_game.py