A repository for our workshop attendees to mess around to learn Git! :D
- Create a fork of the
main
branch. - Clone the new fork onto your computer.
- Create a copy of
introduction.txt
and fill it out. - Rename the
.txt
file. - Push your edits back to your fork.
- Create a pull request.
MacOS | Windows | Description |
---|---|---|
ls |
dir |
Look the listing of the current directory |
cd [folder] |
cd [folder] |
Go into that directory |
cd .. |
cd .. |
Go into parent directory |
mkdir [folder] |
md [folder] |
Create a new directory |
mv [oldName] [newName] |
ren [oldName] [newName] |
Rename a file |
Command | Description |
---|---|
git status |
Show modified files in working directory |
git clone [URL] |
Get a copy of the remote repository in the working directory |
git add [filename] |
Add a file to your next commit |
git add * |
Add all edited files to your next commit |
git rm [filename] |
Remove a file from your next commit |
git commit -m “[message]” |
Commit your edits to the remote repository |
git push |
Push local commits to the remote repository |