![]() modern UI: berg offers an interactive and modern looking user experience.active development: the berg repository is actively developed and maintained by a few people.Rust-based: berg is written in Rust, which has stronger safety guarantees than Go which is used for tea.extra features: berg provides some features that tea doesn't implement, like editing issues or pull requests.berg, is a CLI tool that's tailored for the use with Codeberg. Since Codeberg is based on Forgejo, you can use tea for it. Tea is a general CLI tool that works with all Gitea/Forgejo based instances of git. CLI tools tea and berg for other actions Gitea CLI tea It's even more important when you have collaborators on a project they may change the files as well, so you need to pull these modifications before you start working.īecause of this, it's recommended to pull before pushing. Pulling is important when you're working on different computers, to make sure that all computers are on the same page. Pulling synchronizes the modifications (commit) from the remote repository on Codeberg to the local one. If you want to avoid entering your password every time, consider using SSH instead. If you are using HTTP, you will be asked for your Codeberg username and password. The last step is to synchronize ( push) the commit from the local repository to the remote one on Codeberg. -a: automatically stages modified and deleted files for commits.Here's an explanation of the command flags used here: Advice on how to write a good commit message can be found on countless websites and blogs.Īdd a commit: ~/examples$ git commit -am 'test'ġ file changed, 2 insertions (+ ), 1 deletion (- ) In the real world, make sure your commit message is informative, for you, your collaborators and anyone who might be interested in your work. ![]() ![]() Keep in mind that "test" is not a very informative message, though. For the example below, the message is "test". This is like a snapshot of your edits.Ī commit requires a commit message. CommitĪ commit is a record of the changes to the repository. Here we use nano, but you can use any text editor you'd like. Remote: Compressing objects: 100% ( 2/2 ), done. ~$ git clone passphrase for key '/home/knut/.ssh/id_rsa' : **** If you have set up a passphrase, you will be asked for it. You have verified Codeberg's SSH fingerprint! SSHīefore you are able to access Git repositories via SSH, you need to add an SSH key to your account.īefore connecting to Codeberg via SSH, please make sure that Remote: Total 3 (delta 0 ), reused 0 (delta 0 ) Remote: Counting objects: 100% ( 3/3 ), done. CloneĬloning refers to the process of creating an identical copy of an online repository to your local machine.Ĭlone with the Git command clone followed by the repo URL. The repository was created via the Codeberg website, including a README.md file. The user in these examples is knut the polar bear, and its repository is examples. The latter option is detailed in the section Clone & Commit via Web. Cloning, editing, committing, pushing and pulling can be performed using Git directly from the command line, by using a Git client, or via the web interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |