<!-- --- GA:G-Z5B1GJ8DT9 --- --> :::info Git Tutorial for Beginners ::: ## Create a New Working Area #### 1. Enter the ==Folder== that you want to build ==Repository== from terminal #### 2. clone the existing ==Repository== or initiate new ==Repository== After `git clone` or `git init` , you will see there is a folder umder ==Folder==, which is the new ==Repository== you've built ```linux= # clone the existing repository git clone https://mlxxwedw.fcjdoqwe # initiate a new repository git init ``` ## Create branch ```linux= # Create branch git branch <new_branch_name> # check the current branch git branch git checkout <branch_name> ``` ## Routine Update #### 1. Enter the ==Repository== you've built #### 2. Update the contents #### 3. Check the current branch you're in ```linux= git branch ``` #### 4. Add the change in the working directory to the staging area ```linux= # Add the change in the working directory git add . # Check the change in the working directory git status # Delete the change in the working directory git reset ``` #### 5. Create a commit for the change without pushing to ==Repository== ```linux= git commit -m 'comment' ``` #### 6. Create .gitignore to edit the file extension, filders, and files you want to ignore when pushing the ==Repository==