0% found this document useful (0 votes)
1 views2 pages

git push

The document outlines a series of Git commands executed in a PowerShell environment to initialize a Git repository, configure user identity, and manage branches. It details the process of committing changes, pushing to a remote repository, and handling errors related to authentication and repository access. The final commands show successful updates to the master branch after pulling changes from the remote repository.

Uploaded by

Srimathi tj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

git push

The document outlines a series of Git commands executed in a PowerShell environment to initialize a Git repository, configure user identity, and manage branches. It details the process of committing changes, pushing to a remote repository, and handling errors related to authentication and repository access. The final commands show successful updates to the master branch after pulling changes from the remote repository.

Uploaded by

Srimathi tj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

PS C:\Grievance cell\backend> git add .

fatal: not a git repository (or any of the parent directories): .git
PS C:\Grievance cell\backend> git init
Initialized empty Git repository in C:/Grievance cell/backend/.git/
PS C:\Grievance cell\backend> git add .
warning: in the working copy of 'package-lock.json', LF will be replaced by CRLF
the next time Git touches it
warning: in the working copy of 'package.json', LF will be replaced by CRLF the
next time Git touches it
PS C:\Grievance cell\backend> git commit -m "intialcommit"
Author identity unknown

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"


git config --global user.name "Your Name"

to set your account's default identity.


Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'Srimathi T@LAPTOP-FIOJ8G7O.


(none)')
PS C:\Grievance cell\backend> git config --global user.email "[email protected]"
PS C:\Grievance cell\backend> git commit -m "intialcommit"
[master (root-commit) d1c74a2] intialcommit
11 files changed, 1289 insertions(+)
create mode 100644 .gitignore
create mode 100644 app.js
create mode 100644 config/db.js
create mode 100644 controllers/grievance.controller.js
create mode 100644 controllers/user.controller.js
create mode 100644 models/grievance.model.js
create mode 100644 models/user.model.js
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 routes/grievance.routes.js
create mode 100644 routes/user.routes.js
PS C:\Grievance cell\backend> git remote add origin
https://github.com/0192221064/CityGrievanceCell_backend.git
PS C:\Grievance cell\backend> git push origin master
info: please complete authentication in your browser...
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 8 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (17/17), 12.81 KiB | 1009.00 KiB/s, done.
Total 17 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/0192221064/CityGrievanceCell_backend.git
* [new branch] master -> master
PS C:\Grievance cell\backend> git checkout -b srimathi
Switched to a new branch 'srimathi'
PS C:\Grievance cell\backend> git add .
PS C:\Grievance cell\backend> git commit -m "app.js srimathi branch"
[srimathi 9ab9a86] app.js srimathi branch
1 file changed, 3 insertions(+)
PS C:\Grievance cell\backend> git push origin srimathi
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 309 bytes | 309.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote:
remote: Create a pull request for 'srimathi' on GitHub by visiting:
remote:
https://github.com/0192221064/CityGrievanceCell_backend/pull/new/srimathi
remote:
To https://github.com/0192221064/CityGrievanceCell_backend.git
* [new branch] srimathi -> srimathi
PS C:\Grievance cell\backend> git switch master
Switched to branch 'master'
PS C:\Grievance cell\backend> git pull master
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


and the repository exists.
PS C:\Grievance cell\backend> git pull origin master
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (1/1), 902 bytes | 150.00 KiB/s, done.
From https://github.com/0192221064/CityGrievanceCell_backend
* branch master -> FETCH_HEAD
d1c74a2..d3d854d master -> origin/master
Updating d1c74a2..d3d854d
Fast-forward
app.js | 3 +++
1 file changed, 3 insertions(+)
PS C:\Grievance cell\backend>
* History restored

PS C:\Grievance cell\backend>

You might also like