git can't commit to github -


$ git --version   # git version git version 2.7.4  $ ls  # 3 directories nim_game reverse_string  sum_of_two_integers  $ git status head detached origin/master nothing commit, working directory clean  $ git log --oneline --decorate --graph --all    # part info of commits * dad1c24 (head) add sum_of_two_integers * a7c4e04 (origin/master, origin/head, master) delete * 50d07fe delete * 1323f39 delete * 78a7dda modify file name * 60f58a5 nim_game * 456dfe3 add reverse_string.java 

i've commit sum_of_two_integers local repo, can't push github. how can fix this?

you can shift new temp branch , integrate later in master.

git commit -m "suitble message" git branch new-temp-branch git checkout master git merge new-temp-branch 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -