Starting in Github
Guides for Starters:
1. First you must create an empty
folder for you to initialize a
repository.
2.Second you must create
a file, example is
myName.txt
and fill in your name
in the first line.
3. Now add the file to the
staging area and then commit
to add it in the local database
4. Repeat the step 3.
5. Create a new GitHub repository
and add the remote
to your
local repository
6. Then if you want to save your work in the your GitHub
account, follow these steps:
Command lines:
Step 1:
$ get init .
To initialize a repository
Step 2:
$ ls
$ git add .
To display the files in the current folder, use "ls"
command.
then use "git add" if you wanna add the
files to the staging area
Step 3:
$ git commit -m "description for the commit"
To commit to the local database
Step 4:
$ git branch -M main
To make a branch
Step 5:
$ git remote add origin https://github.com/JulsAbanador/kahit-nao.git
To add the location where do you want to save the files in
GitHub.
Change the url base on your account.
Step 6:
$ git push -u origin main
To push or publish your files in the GitHub repository