Bootstrap FreeKB Articles

Git (Version Control) articles


Version control in Git - Getting Started Adding Files Add files to Git using the git add command Determine if file has been added using the git ls-files command Archive Create an archive (zip gzip bzip2) Branches Create a new branch using the git checkout command Create branch using the git branch command Delete a branch using the git branch command List branches using the git branch command Switch branch using the git checkout command Clone Clone a repository using the git clone command Commit Commit a file using the git commit command Determine if file is ready to be committed using the git status command Roll back to a prior commit using the git revert command View commit details using the git show command View file content using the git show command Compare Differences Compare commits using the git diff command Config Create user defined git configurations List user defined git configurations Remove user defined git configurations Download files from repository Download files using the git checkout command Download files using the git fetch command Download files using the git pull command Files List files in a remote repository using the git ls-remote command Forks fork a repository Ignore List files and directories to ignore using the .gitignore file Install Download and install Git on Windows Install Git on Linux Logs View Git log using the git log command Merge Merge a branch using the git merge command Move Rename Move or Rename a file Pull Request pull request Remove Remove tracked file using the git rm command Remove untracked files using the git clean command Repository Create a repository using the git init command Display repository details using the git remote command Troubleshooting Resolve "error: cannot open .git/FETCH_HEAD: Permission denied" Resolve "error: insufficient permission for adding an object to repository database ./objects" Resolve "fatal: Could not read from remote repository" Resolve "no changes added to commit" Resolve "Pull is not possible because you have unmerged files" Resolve "There is no tracking information for the current branch" Resolve "Updates were rejected because the tip of your current branch is behind its remote counterpart" Resolve "URL using bad/illegal format or missing URL" Resolve "Your branch is based on but the upstream is gone" Resolve "your local changes would be overwritten by checkout" Resolve "your local changes would be overwritten by merge" Resolve merge conflict Upload files to origin repository Upload files to origin repository using the git push command