# Git
https://www.youtube.com/watch?v=gJv0PcfUXE8
>[!enter]
>```
>git init mikeymannmade
>```
>
>```
>cd mikeymannmade/
>```
>
>```
>ls -la
>```
>
>>[!quote] Output
>>```
>>.
>>..
>>.git
>>```
>
>>[!warning] WARNING
> >If you ever delete the .git file, then this folder is no longer a repository.
>[!enter]
>```
>ls -l .git
>```
>>[!quote] Output
>>```
>>total 32
>>drwxr-xr-x 2 mikeymannmade mikeymannmade 4096 Feb 21 12:34 branches
>>-rw-r--r-- 1 mikeymannmade mikeymannmade 92 Feb 21 12:34 config
>>-rw-r--r-- 1 mikeymannmade mikeymannmade 73 Feb 21 12:34 description
>>-rw-r--r-- 1 mikeymannmade mikeymannmade 23 Feb 21 12:34 HEAD
>>drwxr-xr-x 2 mikeymannmade mikeymannmade 4096 Feb 21 12:34 hooks
>>drwxr-xr-x 2 mikeymannmade mikeymannmade 4096 Feb 21 12:34 info
>>drwxr-xr-x 4 mikeymannmade mikeymannmade 4096 Feb 21 12:34 objects
>>drwxr-xr-x 4 mikeymannmade mikeymannmade 4096 Feb 21 12:34 refs
>>```
>[!enter]
>```
>vim README.md
>```
>[!abstract] Write
>```
>
># My name is Mikey
>
>I am attending [Portland State University](https://www.pdx.edu) for a Batchelor's Degree in Computer Science.
>These are the coding projects I want to share with you. Check out my website
>[mikeymannmade.com](https://mikeymannmade.com) to see my other projects and adventures.
>```
>[!info] Press `Esc` then enter `:wq` to save and quit.
>[!enter]
>```
>git status
>```
>
>>[!quote] Output
>>```
>>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)
>>```
README.md is an untracked file
>[!enter]
>```
>git add README.md
>```
>
>```
>git status
>```
>
>>[!quote] Output
>>```
>>On branch master
>>
>>No commits yet
>>
>>Untracked files:
>> (use "git rm --cached <file\>..." to unstage)
>> new file: README.md
>>```
file added to commit list
>[!enter]
>```
>git config --global user.name "mikeymannmade"
>```
>
>```
>git config --global user.email "
[email protected]"
>```
>
>```
>git commit -m "initial commit"
>```
>
>>[!quote] Output
>>```
>>[master (root-commit) 99cf190] initial commit
>> 1 file changed, 6 insertion(+)
>> create mode 100644 README.md
>>```
>[!enter]
>```
>git status
>```
>
>>[!quote] Output
>>```
>>On branch
>>nothing to commit, working tree clean
>>```
>[!warning] Note
>file is committed but only locally
>
>if we edit the file
>[!enter]
>```
>vim README.md
>```
>
>>[!abstract] Write
>>```
>># My name is Mikey
>>
>>I am attending [Portland State University](https://www.pdx.edu) for a Batchelor's Degree in Computer Science.
>>These are the coding projects I want to share with you. Check out my website
>>[mikeymannmade.com](https://mikeymannmade.com) to see my other projects and adventures.
>>```
>>>[!note] Change the file
>>```
>>
>>Im learning:      
>>```
>[!info] Press `Esc` then enter `:wq` to save and quit.
>[!enter]
>```
>git status
>```
>[!quote] Output
>```
>On branch master
>Changes not staged for commit:
> (use "git add <file\>..." to include in what will be committed)
> (use "git restore <file\>..." to discard changes in working directory)
> modified: README.md
>no changes added to commit (use "git add" and/or "git commit -a")
>```
>[!enter]
>```
>git diff README.md
>```
>
>>[!quote] Output
>>```
>>diff --git a/README.md b/README.md
>>--- a/README.md
>>+++ b/README.md
>>@@ - +1,2 @@
>>
>># My name is Mikey
>>
>>I am attending [Portland State University](https://www.pdx.edu) for a Batchelor's Degree in Computer Science.
>>These are the coding projects I want to share with you. Check out my website
>>[mikeymannmade.com](https://mikeymannmade.com) to see my other projects and adventures.
>>
>>+Im learning:      
>>
>>```
>[!enter]
>```
>git add README.md
>```
>```
>git status
>```
>
>>[!quote] Output
>>```
>>On branch master
>>Changes not staged for commit:
>> (use "git restore --staged <file\>..." to unstage)
>> modified: README.md
>>
>>```
now you can push
## GitHub
>[!info] If you do not have a GitHub account then you will need to make one.
## GitLab
>[!info] If you do not have a GitLab account then you will need to make one.