Posts

Showing posts from May, 2019

github add remote repo

git clone <<URL to git repository>> git config --global user.email <<your email ID>> git config --global user.name "<<your name>>" To see the files in a commit: git log git show e6f6a1e19b90d3e590a62bd08eea6e284d259995 --name-only git status //To add new files to repo: git add <<file name>> git commit -m <<"message">> <<file name>> git push

git push error : failed to push some refs to

>>git push To github.xxxx..git  ! [rejected]        master -> master (non-fast-forward) error: failed to push some refs to 'git@github.xxxxxx.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. >>git pull error: Your local changes to the following files would be overwritten by merge: xxx.file >>git push -u origin master To github.xxxx.git  ! [rejected]        master -> master (non-fast-forward) error: failed to push some refs to 'git@github.xxxx.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