0% found this document useful (0 votes)
62 views

Commands

The document shows the steps someone took to set up a local Git repository and push an initial commit to a remote repository on GitHub. They navigated to a local project directory, added and committed a test file, set their user identity for Git, and resolved errors when trying to push to the remote repository for the first time.

Uploaded by

Daniel
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

Commands

The document shows the steps someone took to set up a local Git repository and push an initial commit to a remote repository on GitHub. They navigated to a local project directory, added and committed a test file, set their user identity for Git, and resolved errors when trying to push to the remote repository for the first time.

Uploaded by

Daniel
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

daneelfs@DESKTOP-Q9KLLBI MINGW64 ~

$ cd '/y/GDrive/More/Courses/UN/2019-I/Software Engineering I/Project/bank'

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ ls
README.md Test.txt

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git add .

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git commit -m "Test"

*** 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 'daneelfs@DESKTOP-Q9KLLBI.(none)')

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git config --global user.email "[email protected]"

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git config --global user.name "daneelx"

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git commit -m "Test"
[master 0682bcf] Test
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 Test.txt

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git push origin master
fatal: unable to access 'https://github.com/un-sei2019i-labs-wicks/bank.git/':
Could not resolve host: github.com

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$ git push origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 270 bytes | 90.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/un-sei2019i-labs-wicks/bank.git
1495283..0682bcf master -> master

daneelfs@DESKTOP-Q9KLLBI MINGW64 /y/GDrive/More/Courses/UN/2019-I/Software


Engineering I/Project/bank (master)
$

You might also like