01-git/github-how to create a repository

00-Raw Terminal window
chercheurs-253:~ romaindivozzo$ cd RATATA 
chercheurs-253:RATATA romaindivozzo$ git init 
Initialized empty Git repository in /Users/romaindivozzo/RATATA/.git/
chercheurs-253:RATATA romaindivozzo$ git add RATATA.rtf
chercheurs-253:RATATA romaindivozzo$ git add README.rtf 
chercheurs-253:RATATA romaindivozzo$ git commit -m 'version initiale du projet'
[master (root-commit) 4f38b4b] version initiale du projet 2 files changed, 14 insertions(+) create mode 100644 RATATA.rtf create mode 100644 README.rtf
01-Highlighted Terminal window
chercheurs-253:~ romaindivozzo$ cd RATATA 
chercheurs-253:RATATA romaindivozzo$ git init
Initialized empty Git repository in /Users/romaindivozzo/RATATA/.git/
chercheurs-253:RATATA romaindivozzo$ git add RATATA.rtf
chercheurs-253:RATATA romaindivozzo$ git add README.rtf 
chercheurs-253:RATATA romaindivozzo$ git commit -m 'version initiale du projet' 
[master (root-commit) 4f38b4b] version initiale du projet 2 files changed, 14 insertions(+) create mode 100644 RATATA.rtf create mode 100644 README.rtf
02-Commented Terminal window
00>chercheurs-253:~ romaindivozzo$ cd RATATA 
/* Here, I moved from the directory named romaindivozzo to the directory named RATATA. 
01>chercheurs-253:RATATA romaindivozzo$ git init 
/*Then, I asked Git to initialize an empty repository with the .git extension.
Initialized empty Git repository in /Users/romaindivozzo/RATATA/.git/
/*Git built a new and empty repository
02>chercheurs-253:RATATA romaindivozzo$ git add RATATA.rtf
/*This is when I asked Git to add the file "RATATA.rtf" to the git repository.
03>chercheurs-253:RATATA romaindivozzo$ git add README.rtf 
/*I asked Git to add a file named "README.rtf" to the Git repository.
04>chercheurs-253:RATATA romaindivozzo$ git commit -m 'version initiale du projet'
/*Here I asked Git to record/commmit a version of the "RATATA.rtf" and a version of the "README.rtf" file in my repository.
[master (root-commit) 4f38b4b] version initiale du projet 2 files changed, 14 insertions(+) create mode 100644 RATATA.rtf create mode 100644 README.rtf
/*Git shows you what has changed in your repository after committing your new files.
Publicités