UNIX commands
- clear
- mkdir (can make multiple folders by putting space between names)
- rm (files)
- rm -rf (remove recursive force)
- touch – make a new file
- mv <file1> <file2> (renames a file)
Caroline@CAROL-HP ~/projects/myGitProject (master)
$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
README.md
nothing added to commit but untracked files present (use "git add" to track)
Caroline@CAROL-HP ~/projects/myGitProject (master)
$ git add .
Caroline@CAROL-HP ~/projects/myGitProject (master)
$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: README.md
Caroline@CAROL-HP ~/projects/myGitProject (master)
$
A subdirectory with the project name is created and a .git folder is placed in the subdirectory. to get .git to show up, you must type “ls -a”
Caroline@CAROL-HP ~/projects
$ git init myGitProject
Initialized empty Git repository in C:/Users/Caroline/projects/myGitProject/.git/
Caroline@CAROL-HP ~/projects
$ cd myGitProject
Caroline@CAROL-HP ~/projects/myGitProject (master)
$ ls
Caroline@CAROL-HP ~/projects/myGitProject (master)
$ ls -a
. .. .git
Caroline@CAROL-HP ~/projects/myGitProject (master)
$