Also you can see something like this in you terminal: error: object file .git/objects/03/9e5691db59686e2afce2da700853398c961b4a is empty After the computer crashes, git showed: $ git status error: object file .git/objects/03/9e5691db59686e2afce2da700853398c961b4a is empty error: object file .git/objects/03/9e5691db59686e2afce2da700853398c961b4a is empty fatal: loose object 039e5691db59686e2afce2da700853398c961b4a (stored in .git/objects/03/9e5691db59686e2afce2da700853398c961b4a) is corrupt Git is a control version system. So if weContinue Reading
Tag: Git
How to synchronize local Git with remote Git by overwriting local changes
Git is a distributed version control system / revision control system. It’s used for tracking changes in source code during software development. In general all the changes in the branches. So you need at least one brach for each feature. When feature is done it merges to master branch. And you may want to deleteContinue Reading
Add the current git branch to the Bash prompt
Git is a distributed version control system for tracking changes in source code during software development. In general all the changes in the branches. It’s nice to see current branch in the prompt. It’s like a current working directory. We need to customize your $PS1 – this shell variable is a template of Bash prompt.Continue Reading
How to fix git push error: RPC failed; result=22, HTTP code = 411
This error may appears when you trying to push changes into remote git repository. Don’t panic! It’s really simple to fix. Error: $ git push origin master…error: RPC failed; result=22, HTTP code = 411 fatal:The remote end hung up unexpectedly fatal:The remote end hung up unexpectedly Everything up-to-date… This is caused by a Git configurationContinue Reading
How to rename a local Git branch
Git is a popular version control system. It’s distributed and good for tracking changes in source code. Mostly uses during software development. Most teams use branches to make changes in projects. Branches have a unique names, but if you select wrong name, you can change it. Rename the current local branch git branch -m new_nameContinue Reading
How to delete a Git branch both locally and remotely
Git is a distributed version control system for tracking changes in source code during software development. In general all the changes in the branches. So you need at least one brach for each feature. When feature is done it merges to master branch. And you may want to delete feature-branch. Delete the branch from remoteContinue Reading