7/1/2023 0 Comments Using git bash tutorial pdf![]() ![]() ![]() To add the remote and push the repository, confirm yes when asked to add the remote and push the commits to the current branch.Īlternatively, to skip all the prompts, supply the path to the repository with the -source flag and pass a visibility flag ( -public, -private, or -internal). If you want your project to belong to an organization instead of your user account, specify the organization name and project name with organization-name/project-name.įollow the interactive prompts. When prompted, select Push an existing local repository to GitHub and enter the desired name for your repository. To create a repository for your project on GitHub, use the gh repo create subcommand. Stage and commit all the files in your project git add. Initialize the local directory as a Git repository. In the command line, navigate to the root directory of your project. Sensitive information can include, but is not limited to:įor more information, see " Removing sensitive data from a repository." Adding a local repository to GitHub with GitHub CLI Warning: Never git add, commit, or push sensitive information to a remote repository.
0 Comments
Leave a Reply. |