GIT
#aptitude install git
#aptitude install gitweb
Editar el archivo /etc/gitweb.conf
$projectroot = "/ruta_local/subruta_local/repositorios/"
* Iniciar el repositorio:
git init --bare #Para crear el repositorio en el directorio especificado
* Crear una copia del repositorio:
Local:
git clone /home/ccordero/curso_git/repositorios/local.git # Se va a clonar en ./local/
Remoto:
git clone ssh://ccordero@localhost:22/home/ccordero/curso_git/repositorios/local.git # Se va a clonar en ./local/
Una rama en específico:
git clone -b <branch> <remote_repo>
'''
Tu repositorio local esta compuesto por tres "árboles" administrados por git.
El primero es tu Directorio de trabajo que contiene los archivos.
El segundo es el Index que actua como una zona intermedia.
Y el último es el HEAD que apunta al último commit realizado.
'''
* Add commit:
git add <filename> #Un archivo
git add . #Todos los archivos del directorio
* Hacer commit:
git commit -m "Commit message"
Tus cambios están ahora en el HEAD de tu copia local.
Para enviar estos cambios a tu repositorio remoto ejecuta:
git push origin master #Reemplaza master por la rama a la que quieres enviar tus cambios.
* RAMAS:
Las ramas son utilizadas para desarrollar funcionalidades aisladas unas de otras. La rama master es la rama "por defecto" cuando creas un repositorio. Crea nuevas ramas durante el desarrollo y fusiónalas a la rama principal cuando termines.
Iniciar una rama:
Crear un archivo.
Hacer commit.
git push origin <branch> #master
Crea una nueva rama llamada "Cesar" y cámbiate a ella usando:
git checkout -b Cesar
Vuelve a la rama principal:
git checkout master
Y borra la rama:
git branch -d Cesar
* Si no has clonado un repositorio ya existente y quieres conectar tu repositorio local a un repositorio remoto, usa:
git remote add origin <server>
Ahora podrás subir tus cambios al repositorio remoto seleccionado.
* Actualizar y Fusionar:
Para actualizar tu repositorio local al commit más nuevo, ejecuta:
git pull
en tu directorio de trabajo para bajar y fusionar los cambios remotos.
Para fusionar otra rama a tu rama activa (por ejemplo master), utiliza
git merge <branch>
en ambos casos git intentará fusionar automáticamente los cambios. Desafortunadamente, no siempre será posible y se podrán producir conflictos. Tú eres responsable de fusionar esos conflictos manualmente al editar los archivos mostrados por git. Después de modificarlos, necesitas marcarlos como fusionados con:
git add <filename>
Antes de fusionar los cambios, puedes revisarlos usando
git diff <source_branch> <target_branch>
* ETIQUETAS
http://git-scm.com/book/en/v2/Git-Basics-Tagging
http://git-scm.com/book/es/v1/Fundamentos-de-Git-Creando-etiquetas
* Se recomienda crear etiquetas para cada nueva versión publicada de un software. Este concepto no es nuevo, ya que estaba disponible en SVN. Puedes crear una nueva etiqueta llamada 1.0.0 ejecutando
git tag 1.0.0 1b2e1d63ff
1b2e1d63ff se refiere a los 10 caracteres del commit id al cual quieres referirte con tu etiqueta. Puedes obtener el commit id con
git log
también puedes usar menos caracteres que el commit id, pero debe ser un valor único.
Listar tags:
git tag
git tag -l '1.0*' #Expresión regular
git show 1.0.0 #Mostrar tag de git
Crear tag:
git tag 1.0.0 1b2e1d63ff
Compartiendo tags (Git por defecto no comparte las etiquetas):
git push origin 1.0.0 #Una
git push origin --tags #Todas
Cambiando de etiqueta:
git checkout -b version1 1.0.0 #Crea una nueva rama: version1
git checkout tags/<tag_name>
* REEMPLAZA LOS CAMBIOS LOCALES
En caso de que hagas algo mal (lo que seguramente nunca suceda ;) puedes reemplazar cambios locales usando el comando
git checkout -- <filename>
Este comando reemplaza los cambios en tu directorio de trabajo con el último contenido de HEAD. Los cambios que ya han sido agregados al Index, así como también los nuevos archivos, se mantendrán sin cambio.
Por otro lado, si quieres deshacer todos los cambios locales y commits, puedes traer la última versión del servidor y apuntar a tu copia local principal de esta forma
git fetch origin
git reset --hard origin/master
Fuentes:
http://rogerdudler.github.io/git-guide/index.es.html
http://git-scm.com/book/es/v1/Fundamentos-de-Git-Creando-etiquetas
LATINCHAIN PLATFORM
Understanding the LatinChain Ecosystem
Your gateway to decentralized applications on the Pi Network.
Welcome to the LatinChain Ecosystem portal. As a decentralized application (dApp) built on the Pi Network, our goal is to provide real utility and seamless interaction for the Pi community. Whether you are a developer, a pioneer, or a casual user, understanding the difference between our Mainnet and Testnet environments is crucial for maximizing your experience.
Staking Pi to Boost Rank
Did you know you can directly support the growth of LatinChain Mainnet?
By Staking Pi on our app within the Pi Browser, you help boost our ranking in the ecosystem directory. A higher rank means more visibility, bringing more Pioneers into our community and increasing the value of the network for everyone.
Support us today and help LatinChain reach the top!
Why Choose the Mainnet?
The LatinChain Mainnet (latinchain.pinet.com) is the live production environment where real value is exchanged. By accessing the Mainnet, you are interacting with the fully operational version of our blockchain application.
- Real Utility: Every action contributes to the genuine activity of the network.
- Verified Status: Users who choose to support the ecosystem via donations can unlock "Verified" status. This signals your commitment to the community.
- Double Utility Bonus: Active usage on the Mainnet contributes to your Pi utility usage bonus.
The Role of the Testnet
The Testnet serves as our sandbox environment. It is designed for users who want to explore new features, test transaction flows, or understand the mechanics of the LatinChain token without using real Pi. It is the perfect training ground for new pioneers to get comfortable with Web3 interactions before moving to the Mainnet.
How the LatinChain Token Works
LatinChain is designed to foster a digital economy within the Pi Browser. By participating in either network, you are helping to stress-test and improve a growing financial ecosystem.
Select an option above to begin your journey.
The Evolution of Cryptocurrency: From Bitcoin's Genesis to Pi Network's Ecosystem (2008-nowadays)
The world of finance was forever changed in the aftermath of the 2008 global financial crisis. What started as an obscure proposal on a cryptography mailing list has transformed into a global technological revolution. Here is the journey of cryptocurrency from its inception to the present day.
The Genesis: Bitcoin and the Decentralized Dream (2008-2010)
In October 2008, an anonymous entity named Satoshi Nakamoto published a whitepaper titled "Bitcoin: A Peer-to-Peer Electronic Cash System." It introduced a revolutionary concept: a decentralized digital currency that required no central bank or administrator.
- The Genesis Block: On January 3, 2009, the first block of the Bitcoin network was mined, setting the foundation for a new financial paradigm.
- Proof of Work: This brilliant consensus mechanism solved the double-spending problem, ensuring complete trust in a trustless digital environment.
Programmable Money: Ethereum and the DeFi Explosion (2015-2021)
While Bitcoin proved the concept of digital scarcity, developers soon realized blockchain technology could do much more. In 2015, Ethereum launched, introducing "smart contracts"—self-executing code that lives directly on the blockchain.
- Decentralized Finance (DeFi): Ethereum enabled the creation of lending platforms, decentralized exchanges, and automated market makers.
- Mainstream Awareness: By 2021, the crypto market reached unprecedented heights, driven by global retail interest, digital art (NFTs), and the exciting promise of Web3.
Maturation and Institutional Adoption (2022-2024)
Following the euphoric highs of previous years, the industry entered a vital period of maturation. The global focus shifted from pure speculation to building robust, scalable infrastructure.
- Layer 2 Solutions: New networks built on top of base blockchains made transactions significantly faster and cheaper.
- Wall Street Entry: Major traditional financial institutions embraced Bitcoin ETFs, permanently cementing cryptocurrency as a legitimate and highly sought-after asset class.
The Accessibility Revolution: Pi Network (2025-nowadays)
Despite massive industry growth, a major barrier remained: traditional crypto mining was expensive and technically complex. Enter Pi Network, a visionary project designed to put cryptocurrency directly into the hands of everyday people. By nowadays, Pi Network has beautifully solidified its vision of creating a truly inclusive digital economy.
- Mobile-First Innovation: Pi revolutionized accessibility by allowing users to mine directly from their smartphones without draining battery life or data.
- Global Community: It successfully built one of the largest, most engaged, and widely distributed communities in the entire Web3 space.
- Everyday Utility: With a robust ecosystem of decentralized applications (dApps) and an innovative native KYC solution, Pi Network empowers millions of everyday users to transact, build, and interact seamlessly.
Takeaway: The journey from 2008 to nowadays highlights a monumental shift from niche cryptography to universal accessibility, paving the way for a financial future that truly includes everyone.
Comments
Post a Comment