315 shaares
3 results
tagged
git
Add folder to Git
git init
git add .
git commit -m "commit message"
git remote add traefik https://yebana@bitbucket.org/yebana/traefik.git
git push -u -f traefik master #cambios desde local a la nube
git pull #cambios desde la nube a local
The origin Remote
When you clone a repository with git clone, it automatically creates a remote connection called origin pointing back to the cloned repository. This is useful for developers creating a local copy of a central repository, since it provides an easy way to pull upstream changes or publish local commits. This behavior is also why most Git-based projects call their central repository origin.
git pull = git fetch + git merge
…or create a new repository on the command line
echo "# hugo_cv" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/yebana/hugo_cv.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/yebana/hugo_cv.git
git branch -M main
git push -u origin main
...or bind http server to a different IP address, the port (1313) doesn´t change
hugo server --bind 192.168.1.88 --baseURL http://192.168.1.88