Skip to content

sameer1098alam/Shop-Cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E:\Desktop\ALgocamp\EcommerceApp>git init Initialized empty Git repository in E:/Desktop/ALgocamp/EcommerceApp/.git/

E:\Desktop\ALgocamp\EcommerceApp>git add . warning: in the working copy of 'index.html', LF will be replaced by CRLF the next time Git touches it

E:\Desktop\ALgocamp\EcommerceApp>git commit -m "initial commit" [master (root-commit) e5a5720] initial commit 3 files changed, 46 insertions(+) create mode 100644 css/comman.css create mode 100644 css/home.css create mode 100644 index.html

E:\Desktop\ALgocamp\EcommerceApp>git branch -M m ain

E:\Desktop\ALgocamp\EcommerceApp>git remote add origin https://github.com/sameer1098alam/Shop-Cart.git

gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 1.15 KiB | 1.15 MiB/s, done. Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 To https://github.com/sameer1098alam/Shop-Cart.git

  • [new branch] main -> main branch 'main' set up to track 'origin/main'.

E:\Desktop\ALgocamp\EcommerceApp>


E:\Desktop\ALgocamp\EcommerceApp>git init Initialized empty Git repository in E:/Desktop/ALgocamp/EcommerceApp/.git/

E:\Desktop\ALgocamp\EcommerceApp>git add . warning: in the working copy of 'index.html', LF will be replaced by CRLF the next time Git touches it

E:\Desktop\ALgocamp\EcommerceApp>git commit -m "initial commit" [master (root-commit) e5a5720] initial commit 3 files changed, 46 insertions(+) create mode 100644 css/comman.css create mode 100644 css/home.css create mode 100644 index.html

E:\Desktop\ALgocamp\EcommerceApp>git branch -M m ain

gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 4 threads gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. gin main Enumerating objects: 5, done. gin main gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 1.15 KiB | 1.15 MiB/s, done. Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 To https://github.com/sameer1098alam/Shop-Cart.git

  • [new branch] main -> main branch 'main' set up to track 'origin/main'. gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. gin main Enumerating objects: 5, done. gin main gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done. gin main Enumerating objects: 5, done. gin main Enumerating objects: 5, done. Counting objects: 100% (5/5), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (4/4), done.
    Writing objects: 100% (5/5), 1.15 KiB | 1.15 MiB/s, done. Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 To https://github.com/sameer1098alam/Shop-Cart.git
  • [new branch] main -> main
    branch 'main' set up to track 'origin/main'.

E:\Desktop\ALgocamp\EcommerceApp>git add . 2 files changed, 53 insertions(+), 1 deletion(-) E:\Desktop\ALgocamp\EcommerceApp>git push origin main
To https://github.com/sameer1098alam/Shop-Cart.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/sameer1098alam/Shop-Cart.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

E:\Desktop\ALgocamp\EcommerceApp>git fetch remote: Enumerating objects: 4, done. remote: Counting objects: 100% (4/4), done. remote: Compressing objects: 100% (3/3), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), 1.44 KiB | 5.00 KiB/s, done. From https://github.com/sameer1098alam/Shop-Cart e5a5720..accc106 main -> origin/main ............................................................................ First need to pull the repository the we can use push command....................... E:\Desktop\ALgocamp\EcommerceApp>git add .

E:\Desktop\ALgocamp\EcommerceApp>git push origin main To https://github.com/sameer1098alam/Shop-Cart.git ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'https://github.com/sameer1098alam/Shop-Cart.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

E:\Desktop\ALgocamp\EcommerceApp>git pull Merge made by the 'ort' strategy. README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 README.md

E:\Desktop\ALgocamp\EcommerceApp>git push origin main Enumerating objects: 15, done. Counting objects: 100% (12/12), done. Delta compression using up to 4 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 1.08 KiB | 1.08 MiB/s, done. Total 7 (delta 1), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (1/1), completed with 1 local object. To https://github.com/sameer1098alam/Shop-Cart.git accc106..5c7dffc main -> main

E:\Desktop\ALgocamp\EcommerceApp>