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

Git Push Pull Help

The document outlines the steps a user took to set up a remote repository on GitHub and push local changes to it. It shows the user adding the remote, pulling changes from the remote to integrate them locally, and resolving authentication issues before successfully pushing changes to the remote repository.

Uploaded by

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

Git Push Pull Help

The document outlines the steps a user took to set up a remote repository on GitHub and push local changes to it. It shows the user adding the remote, pulling changes from the remote to integrate them locally, and resolving authentication issues before successfully pushing changes to the remote repository.

Uploaded by

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

Welcome to Git (version 1.9.

4-preview20140611)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git push origin master
fatal: 'origin' 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.
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git remote add https://github.com/viditgarg/ExData_Plotting1.git
usage: git remote add [<options>] <name> <url>
-f, --fetch
--tags

fetch the remote branches


import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=<push|fetch>]
set up remote as a mirror to push to or fetch from
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git remote add origin https://github.com/viditgarg/ExData_Plotting1.git
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git push origin master
Username for 'https://github.com': viditgarg
Password for 'https://[email protected]':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/viditgarg/ExData_Plotting1.
git/'
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git push origin master
Username for 'https://github.com': viditgarg
Password for 'https://[email protected]':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/viditgarg/ExData_Plotting1.
git/'

PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi


s/proj1 (master)
$ git push origin master
Username for 'https://github.com': viditgarg
Password for 'https://[email protected]':
To https://github.com/viditgarg/ExData_Plotting1.git
! [rejected]
master -> master (fetch first)
error: failed to push some refs to 'https://github.com/viditgarg/ExData_Plotting
1.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.
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git pull
warning: no common commits
remote: Counting objects: 13, done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 13
Unpacking objects: 100% (13/13), done.
From https://github.com/viditgarg/ExData_Plotting1
* [new branch]
master
-> origin/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git pull https://github.com/viditgarg/ExData_Plotting1.git .
fatal: Invalid refspec '.'
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git pull https://github.com/viditgarg/ExData_Plotting1.git
From https://github.com/viditgarg/ExData_Plotting1
* branch
HEAD
-> FETCH_HEAD
Merge made by the 'recursive' strategy.
README.md
| 114 +++++++++++++++++++++++++++++++++++++++++++++
figure/unnamed-chunk-2.png | Bin 0 -> 16262 bytes
figure/unnamed-chunk-3.png | Bin 0 -> 30440 bytes
figure/unnamed-chunk-4.png | Bin 0 -> 27722 bytes
figure/unnamed-chunk-5.png | Bin 0 -> 54811 bytes
5 files changed, 114 insertions(+)
create mode 100644 README.md
create mode 100644 figure/unnamed-chunk-2.png
create mode 100644 figure/unnamed-chunk-3.png
create mode 100644 figure/unnamed-chunk-4.png
create mode 100644 figure/unnamed-chunk-5.png
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi

s/proj1 (master)
$ git push origin master
Username for 'https://github.com': viditgarg
Password for 'https://[email protected]':
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 18.97 KiB | 0 bytes/s, done.
Total 12 (delta 4), reused 0 (delta 0)
To https://github.com/viditgarg/ExData_Plotting1.git
73fe5c6..19d14a5 master -> master
PBB@IPLCELPT00033 /D/Vidit/WMP Related/Coursera courses/Exploratory Data Analysi
s/proj1 (master)
$ git push origin master

You might also like