- clone this git on your local
git clone https://github.com/noorzaman/emp.git
Cloning into 'emp'...
remote: Counting objects: 21994, done.
remote: Compressing objects: 100% (16012/16012), done.
remote: Total 21994 (delta 4834), reused 21975 (delta 4824), pack-reused 0
Receiving objects: 100% (21994/21994), 56.05 MiB | 1.06 MiB/s, done.
Resolving deltas: 100% (4834/4834), done.
Checking out files: 100% (26423/26423), done.
***
- you can keep working on main or create your own branch like i did
$ git checkout -b noor
Switched to a new branch 'noor'
- just to make sure that the branch has been created and I an on it
$ git branch
master
* noor
- added a file <<emp_insert.html>> to the current directory
$ cp ../amazon/emp_insert.html .
$ git add .
$ git status
On branch noor
Changes to be committed:
(use "git reset HEAD ..." to unstage)
new file: emp_insert.html
- committing file to local repo
$ git commit -m "emp insertion html and js"
[noor 620b1678] emp insertion html and js
1 file changed, 188 insertions(+)
create mode 100644 emp_insert.html
- first time push - fails and needs additional info
$ git push
fatal: The current branch noor has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin noor
- ok let us try the way you tell us - and now it works
$ git push --set-upstream origin noor
Counting objects: 3, done.
...
Branch noor set up to track remote branch noor from origin.