Search Posts

Category: Git

How to get Git token

To push to a Git repository with a personal access token, you can create a new token on GitHub, GitLab, or other platforms. Here’s how you can get a personal access token on GitHub: 1. Navigate to Settings Go to GitHub and sign in. Click on your profile picture in the upper-right corner and select […]

Push to Gitub

To push a local repository to a remote GitHub repository, follow these steps: 1. Create a Remote Repository on GitHub: Go to GitHub and log in to your account. Click the + icon in the upper-right corner and select New repository. Name your repository and add a description (optional). Choose whether the repository should be […]

Basic Git

Configure your Git username and email: git config –global user.name "Your Name" git config –global user.email "youremail@example.com" Initialize Repository: git init Add Files to Staging: git add . Commit Changes: git commit -m "Initial commit" Create a Branch: git checkout -b new-feature Switch Branches: git checkout main Merge Branches: git merge new-feature Configuring .gitignore Create […]