Just to remember a simple command...
Add a file in order to be managed by GIT :
git add filename
If you want to undo the git add command :
git reset file
Just to remember a simple command...
Add a file in order to be managed by GIT :
git add filename
If you want to undo the git add command :
git reset file
Sometimes, I commit files I don't want.This reminder explain how to remove theses files from GIT.
First, you can list files managed by your GIT repositories :
Then, you have to delete unwanted files.In my case, I commited the .idea directory :
If you check the status, you are going to see delete files :
You only have to execute the commit command : git commit -m "Delete unwanted files"
The last step is to add the unwanted files or directory in the .gitignore file (.idea in my case) :
GIT : version 2.17.0.windows.1
Then, you can delete your bad stash :
That's all !
Feel free to comment.
GIT : version 2.17.0.windows.1
git config --global user.email "your_github_email_@email.com"
git config –-global user.name NEWUSER
git config user.name NEWUSER
git remote set-url origin "https://user@git.fr/project/project.git"
git config --unset-all credential.helper (clean user and password)
git config --system --unset-all credential.helper (clean user and password)
GIT_TRACE=2 GIT_CURL_VERBOSE=1 git push -v --set-upstream origin mybranch
Lors de la publication des versions dans la PlayConsole, j'avais 2 warnings pour indiquer qu'il était possible de réduire et d'o...