-1
I’m trying to create a repository of github, but something is going wrong and I can’t identify what:
I’m using:
- windows 10 //
- git version 2.22.0.windows//
- Node V10.16.0 //
- Browser
- Sync v2.26.7 //
- sublime text 3 //
The steps I’m following - on github:
create a new repository ---
name it ---
settings> github pages> master blanch ----
back to the main and copy the link
In the terminal:
git clone <LINK> ----
cd <NAME OF THE REPOSITORY> ----
dir
In the sublime:
After I create the file index.html and saved in the folder, I give the command 'git status' and the terminal does not show the index file created, the msg appears:
"On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean"
I’ve checked a few times and I don’t understand what’s going wrong..
If the file is new, you need to add with
git add index.html. And then commit the file, push, etc...– hkotsubo
Or you can add it all at once with the
git add .– CypherPotato