D
D
Daniel2018-02-19 11:36:43
git
Daniel, 2018-02-19 11:36:43

Git How to update a project. Nothing works. git add. doesn't add anything?

Help with git to understand. Why 95% of the commands do not work for me. (5% manage to upload the project to github, after 100 command combinations, not one source helps, only if you create a new project or work through netBeanse). I have already replaced the project with an empty one several times, and I am losing time.
Constantly
On branch master
nothing to commit, working tree clean

, I need to update the repository, I don’t understand how to do this.
git status is always (95-98%) empty, and produces the above underlined message instead of the
CMD list
C:\Users\danii\Documents\NetBeansProjects\Patterns>git init
Reinitialized existing Git repository in C:/Users/danii/Documents/NetBeansProjects/ Patterns/.git/
C:\Users\danii\Documents\NetBeansProjects\Patterns>git add .
C:\Users\danii\Documents\NetBeansProjects\Patterns>git commit -m " 95 commit"
On branch master
nothing to commit, working tree clean
C:\Users\danii\Documents\NetBeansProjects\Patterns>git status
On branch master
nothing to commit, working tree clean
C:\Users\danii\Documents\NetBeansProjects\Patterns>git remote master https://github.com/delverOne25/PaternsExample.git // or remote origin or remote newuser
C:\Users\danii\ Documents\NetBeansProjects\Patterns>git push origin master
Everything up-to-date
/* Sometimes On branch master
nothing to commit, working tree clean */
/* or, but then -f works. Only I replaced my project with an empty one (that is, everything on github was deleted)
To https://github.com/delverOne25/PaternsExample.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ' https://github.com/delverOne25/PaternsExample.git '
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (eg
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details
*/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question