Tag: git
IntelliJ IDEA: Getting “Fetch failed. Fatal: Could not read from remote repository”
In case you encounter this issue, do the following: 1. Preferences > SSH 2. Make sure SSH executable is set to “Native.” (If already so, switch to “Built-in,” apply it, then switch back to “Native.”) 3. Happy fetching!
Git: Create a duplicate branch of master
I worked on upgrading a web service from JDK 1.6 to JDK 1.8 and was successful (that’s something I need to write a post on); however, I wanted to make sure I could revert back to pre-1.8 in case it breaks in production. The solution was to create a clone or duplicate of master before…
My global .gitignore
Adding my .gitignore file so I can look it up in the future. # Eclipse .classpath .project .settings/ # Intellij .idea/ *.iml *.iws # OS .DS_Store *.sw? # Maven log/ target/ And then configure Git to use it globally by: git config –global core.excludesfile ~/.gitignore Voila!
Multiple git pull in one folder containing multiple repository
for REPO in `ls`; do (cd "$REPO"; git pull); done; Source: Multiple git pull in one folder containing multiple repository