Cloning to a local repo
To start branching, you can create a branch on Github with your name. Go to your local folder where you want to place these files.
Initialize the folder -> git init
Take the URL from your branch, by clicking the clone button, and clone it in your local folder -> git clone --branch <your-branch-name> <URL for the branch in github>
And voila, your files are in the folder. Push your files as you edit the code to keep track.
Updating the Github Repo
After the edit is done, add the untracked files to the staging area. Either add all files -> git add . or Add a specific file -> git add <filename>
You can see your untracked files by executing git status
Commit your changes and add a message showing the changes you made -> git commit -m "<commit message>"
You can track your commits by executing git log
Finally, push your changes -> git push -u <remote> (Since you cloned your branch, you don't have to specify the branch name. Also make sure to be within the directory "Tech-Daddy" rather than the directory in which you initialized git)
Cloning to a local repo
To start branching, you can create a branch on Github with your name. Go to your local folder where you want to place these files.
Initialize the folder ->
git initTake the URL from your branch, by clicking the clone button, and clone it in your local folder ->
git clone --branch <your-branch-name> <URL for the branch in github>And voila, your files are in the folder. Push your files as you edit the code to keep track.
Updating the Github Repo
After the edit is done, add the untracked files to the staging area. Either add all files ->
git add .or Add a specific file ->git add <filename>You can see your untracked files by executing
git statusCommit your changes and add a message showing the changes you made ->
git commit -m "<commit message>"You can track your commits by executing
git logFinally, push your changes ->
git push -u <remote>(Since you cloned your branch, you don't have to specify the branch name. Also make sure to be within the directory "Tech-Daddy" rather than the directory in which you initialized git)