Git Errors and Resolutions

Error-1:

$ git push fin01 master
To https://github.com/mss-ec-applications-feroz/fin01.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/mss-ec-applications-feroz/fin01.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.


Resolution:

Syntax: git pull <Project_URL or Project_Alias> master

$git pull fin01 master
From https://github.com/mss-ec-applications-feroz/fin01
 * branch            master     -> FETCH_HEAD
Merge made by the 'recursive' strategy.
 deploy.sh | 1 +
 test.py   | 1 +
 2 files changed, 2 insertions(+)

$ git push fin01 master
Enumerating objects: 12, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.35 KiB | 693.00 KiB/s, done.
Total 8 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 1 local object.
To https://github.com/mss-ec-applications-feroz/fin01.git
   5a73b64..1165d65  master -> master


Comments

Popular posts from this blog

Auditing in Oracle database

rs.stepDown() in MongoDB replication

Tuples in Python